Skip to content
Browse files

Don't trust some internets.

  • Loading branch information...
1 parent 15afd49 commit c887b59e94a2fbb20fe671e3a0b46e71d1f7136e @dmitriy-kiriyenko committed Mar 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/soprano/unicorn.rb
View
2 lib/soprano/unicorn.rb
@@ -24,7 +24,7 @@ def unicorn_pid
desc "Restart application."
task :restart, :roles => :app do
- run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill -HUP `cat #{unicorn_pid}`; else cd #{release_path} && #{unicorn_bin} -c #{unicorn_conf} -E #{rails_env} -D; fi"
+ run "if [ -f #{unicorn_pid} ] && [ -e /proc/$(cat #{unicorn_pid}) ]; then kill -USR2 `cat #{unicorn_pid}`; else cd #{release_path} && #{unicorn_bin} -c #{unicorn_conf} -E #{rails_env} -D; fi"
end
end

0 comments on commit c887b59

Please sign in to comment.
Something went wrong with that request. Please try again.