diff --git a/script/production b/script/production index d41e01c..f43c3cc 100755 --- a/script/production +++ b/script/production @@ -40,7 +40,10 @@ app_server_stop() { app_server_restart() { # see unicorn_rails(1) and "Signal handling" in unicorn documentation kill -s USR2 $(cat tmp/pids/unicorn.pid) - sleep 5 + while [ ! -f tmp/pids/unicorn.pid.oldbin ] + do + sleep 1 + done kill -s QUIT $(cat tmp/pids/unicorn.pid.oldbin) } -- libgit2 0.21.2