X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1c848471a16f9d1ee1fc8a327af110447ea1ef4c..e148bf831efe1a669640d637cb1e9546776f52f1:/cookbooks/web/templates/default/passenger.cron.erb diff --git a/cookbooks/web/templates/default/passenger.cron.erb b/cookbooks/web/templates/default/passenger.cron.erb index b4d78fd96..086c41366 100644 --- a/cookbooks/web/templates/default/passenger.cron.erb +++ b/cookbooks/web/templates/default/passenger.cron.erb @@ -10,7 +10,7 @@ passenger-status | awk '/PID:/ { print $3 }' | sort > /tmp/rails.expected.$$ pids=$(comm -23 /tmp/rails.actual.$$ /tmp/rails.expected.$$) # Kill any expected rack processes -[ -n "$pids" ] && kill -9 $pids +[ -n "$pids" ] && kill -9 $pids > /dev/null 2>&1 # Remove our temporary files rm -f /tmp/rails.actual.$$ /tmp/rails.expected.$$