Merge pull request from biolds/master

Fix waiting for pidfile
This commit is contained in:
Nik Everett 2016-02-29 15:02:29 -05:00
commit 97c4dd3b92

@ -172,7 +172,7 @@ case "$1" in
i=0
timeout=10
# Wait for the process to be properly started before exiting
until { cat "$PID_FILE" | xargs kill -0; } >/dev/null 2>&1
until { kill -0 `cat "$PID_FILE"`; } >/dev/null 2>&1
do
sleep 1
i=$(($i + 1))