Fixed nonsense syntax in shell file test-setup.
- Legacy-Id: 355
This commit is contained in:
parent
1ec697c90a
commit
a71abb1da4
|
@ -61,7 +61,8 @@ while true; do
|
||||||
echo "$$" > $PIDFILE
|
echo "$$" > $PIDFILE
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
pid=$(< $PIDFILE ) || die "Couldn't read pidfile '$PIDFILE'"
|
pid=$(< $PIDFILE )
|
||||||
|
[ "$pid" ] || die "Couldn't read pidfile '$PIDFILE'"
|
||||||
if kill -0 $pid; then
|
if kill -0 $pid; then
|
||||||
echo "Pidfile for process $pid exists, and process is running. Sleeping."
|
echo "Pidfile for process $pid exists, and process is running. Sleeping."
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
Loading…
Reference in a new issue