Commit 886d362aa58207483c5f66bb37e54e01afbe2e82
Exists in
master
and in
29 other branches
Merge branch 'running-check' into 'master'
script-production: add spaces between pids on running method The method `running` o script production was concatenating all pids without spaces. See merge request !539
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=$(cat tmp/pids/thin.*.pid 2>/dev/null || true) | |
88 | + pids=$(sed "s/.*/& /" tmp/pids/thin.*.pid | tr -d '\n' 2>/dev/null || true) | |
89 | 89 | # passes if any of $pids exist, fails otherwise |
90 | 90 | kill -0 $pids > /dev/null 2>&1 |
91 | 91 | } | ... | ... |