Stop Sidekiq first before reloading unicorn master.

This commit is contained in:
Guo Xiang Tan 2018-11-21 09:52:36 +08:00
parent 0a86ef69bb
commit 598ac69773

View File

@ -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