fix for mod queue logic

This commit is contained in:
albert
2013-02-22 20:59:21 -05:00
parent e0dfd14804
commit 4203f344c0
3 changed files with 3 additions and 6 deletions

View File

@@ -82,10 +82,7 @@ namespace :deploy do
namespace :nginx do
desc "Shut down Nginx"
task :stop do
pids = capture("pgrep -f nginx").scan(/\d+/)
pids.each do |pid|
sudo "kill -SIGTERM #{pid}"
end
sudo "/etc/init.d/nginx stop"
end
desc "Start Nginx"