mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
Stop Sidekiq first before reloading unicorn master.
This commit is contained in:
parent
0a86ef69bb
commit
598ac69773
|
@ -18,6 +18,8 @@ function on_exit()
|
|||
|
||||
function on_reload()
|
||||
{
|
||||
log "Stopping Sidekiq"
|
||||
kill -s TSTP $UNICORN_PID
|
||||
log "Reloading unicorn ($UNICORN_PID)"
|
||||
kill -s USR2 $UNICORN_PID
|
||||
unset NEW_UNICORN_PID
|
||||
|
|
Loading…
Reference in New Issue
Block a user