unicorn.god.erb fix god restarting
This commit is contained in:
parent
7072baef73
commit
322f7c4192
@ -1,5 +1,5 @@
|
|||||||
# Unicorn specific
|
# Unicorn specific
|
||||||
w.pid_file = "<%= engine.directory + "/tmp/pids/unicorn.pid" %>"
|
w.pid_file = "<%= engine.directory + "/tmp/pids/unicorn.pid" %>"
|
||||||
w.stop = "kill -QUIT `cat #{w.pid_file}`"
|
w.stop = "kill -QUIT `cat #{w.pid_file}`"
|
||||||
w.restart = "kill -USR2 `cat #{w.pid_file}` && sleep 20 && kill -QUIT #{w.pid_file}.oldbin"
|
w.restart = "kill -USR2 `cat #{w.pid_file}` && sleep 20 && kill -QUIT `cat #{w.pid_file}.oldbin`"
|
||||||
w.behavior(:clean_pid_file)
|
w.behavior(:clean_pid_file)
|
||||||
|
Loading…
Reference in New Issue
Block a user