Commit 3aba3cdf12d7445c79b96dea228f5484414cb97e
1 parent
57dba711
Exists in
theme-brasil-digital-from-staging
and in
1 other branch
fix script production in app restart
Showing
1 changed file
with
1 additions
and
6 deletions
Show diff stats
script/production
... | ... | @@ -42,12 +42,7 @@ app_server_stop() { |
42 | 42 | app_server_restart() { |
43 | 43 | # see unicorn_rails(1) and "Signal handling" in unicorn documentation |
44 | 44 | kill -s USR2 $(cat tmp/pids/unicorn.pid) |
45 | - count=0 | |
46 | - while [ ! -f tmp/pids/unicorn.pid.oldbin || $count > $TIMEOUT ] | |
47 | - do | |
48 | - echo "Waitting for $count" | |
49 | - sleep 1 | |
50 | - done | |
45 | + sleep 5 | |
51 | 46 | kill -s QUIT $(cat tmp/pids/unicorn.pid.oldbin) |
52 | 47 | } |
53 | 48 | ... | ... |