Fix waiting for pidfile

Closes #16717
This commit is contained in:
Laurent Defert 2016-02-18 02:00:10 +01:00
parent 3290cfbd31
commit 6661c4c37f
1 changed files with 1 additions and 1 deletions

View File

@ -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))