Commit 9ae8878384d3e73f0597989fb7065b53176e34b0
1 parent
a3708580
Exists in
staging
and in
42 other branches
script/production: fix handling of PID files in status check
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
script/production
| ... | ... | @@ -85,7 +85,7 @@ environments_loop() { |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | do_running() { |
| 88 | - pids=$(sed "s/.*/& /" tmp/pids/thin.*.pid | tr -d '\n' 2>/dev/null || true) | |
| 88 | + pids=$(sed "s/.*/& /" tmp/pids/thin.*.pid 2>/dev/null | tr -d '\n') | |
| 89 | 89 | # passes if any of $pids exist, fails otherwise |
| 90 | 90 | kill -0 $pids > /dev/null 2>&1 |
| 91 | 91 | } | ... | ... |