[noosfero/noosfero][master] script/production: fix handling of PID files in status check

Antonio Terceiro gitlab at gitlab.com
Mon Apr 20 16:30:15 BRT 2015


Antonio Terceiro pushed to branch master at Noosfero / noosfero


Commits:
9ae88783 by Antonio Terceiro at 2015-04-20T14:52:31Z
script/production: fix handling of PID files in status check

- - - - -


1 changed file:

- script/production


Changes:

=====================================
script/production
=====================================
--- a/script/production
+++ b/script/production
@@ -85,7 +85,7 @@ environments_loop() {
 }
 
 do_running() {
-  pids=$(sed "s/.*/& /" tmp/pids/thin.*.pid | tr -d '\n' 2>/dev/null || true)
+  pids=$(sed "s/.*/& /" tmp/pids/thin.*.pid 2>/dev/null | tr -d '\n')
   # passes if any of $pids exist, fails otherwise
   kill -0 $pids > /dev/null 2>&1
 }



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/9ae8878384d3e73f0597989fb7065b53176e34b0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150420/ab5e6b55/attachment.html>


More information about the Noosfero-dev mailing list