Commit 8d812ad75d567bee168c4ff370b5ef18d2a111eb

Authored by Rodrigo Souto
Committed by Victor Costa
1 parent 6698f304

script-production: add spaces between pids on running method

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 }
... ...