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()
|
function on_reload()
|
||||||
{
|
{
|
||||||
|
log "Stopping Sidekiq"
|
||||||
|
kill -s TSTP $UNICORN_PID
|
||||||
log "Reloading unicorn ($UNICORN_PID)"
|
log "Reloading unicorn ($UNICORN_PID)"
|
||||||
kill -s USR2 $UNICORN_PID
|
kill -s USR2 $UNICORN_PID
|
||||||
unset NEW_UNICORN_PID
|
unset NEW_UNICORN_PID
|
||||||
|
|
Loading…
Reference in New Issue