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
1 changed files with 2 additions and 0 deletions

View File

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