Commit f5607e07 authored by Ben Fayers's avatar Ben Fayers Committed by GitHub

Change stopnginx alias to run sudo nginx -s stop

stopnginx now stops nginx gracefully instead of just killing the process.
parent 7e2ebd29
......@@ -20,6 +20,6 @@ class Nginx < Package
system "echo adding bash aliases so you can easily start/stop nginx"
system "echo startnginx starts nginx and stopnginx stops nginx"
system "sed -i '$ a alias startnginx=\"sudo nginx\"' ~/.bashrc"
system "sed -i '$ a alias stopnginx=\"sudo pkill nginx\"' ~/.bashrc"
system "sed -i '$ a alias stopnginx=\"sudo nginx -s quit\"' ~/.bashrc"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment