From 3aba3cdf12d7445c79b96dea228f5484414cb97e Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Fri, 8 Jan 2016 10:08:11 -0300 Subject: [PATCH] fix script production in app restart --- script/production | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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