diff --git a/script/production b/script/production index bcfeec4..0ddc63b 100755 --- a/script/production +++ b/script/production @@ -42,12 +42,7 @@ app_server_stop() { app_server_restart() { # see unicorn_rails(1) and "Signal handling" in unicorn documentation kill -s USR2 $(cat tmp/pids/unicorn.pid) - count=0 - while [ ! -f tmp/pids/unicorn.pid.oldbin || $count > $TIMEOUT ] - do - echo "Waitting for $count" - sleep 1 - done + sleep 5 kill -s QUIT $(cat tmp/pids/unicorn.pid.oldbin) } -- libgit2 0.21.2