Skip to content

A platform for community discussion. Free, open, simple.

Stop Sidekiq first before reloading unicorn master.

Guo Xiang Tan598ac6977310
diff --git a/config/unicorn_launcher b/config/unicorn_launcher
index 0aec686d2d4..39604fdb83a 100755
--- a/config/unicorn_launcher
+++ b/config/unicorn_launcher
@@ -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