Skip to content

Commit

Permalink
relocate sleep in _wait_for_listening
Browse files Browse the repository at this point in the history
  • Loading branch information
Zbigniew Zabost committed May 19, 2017
1 parent 7e6dccd commit 2df9715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/default/sysvinit.service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ _status_q() {
_wait_for_listening() {
echo -n "Waiting for consul daemon to be listening..."
for i in `seq 1 30`; do
sleep 1
# if ! start-stop-daemon --quiet --stop --test --pidfile $pidfile --user $user; then
if ! _status_q; then
echo " FAIL: consul process died"
Expand All @@ -122,7 +123,6 @@ _wait_for_listening() {
return 0
fi
echo -n .
sleep 1
done
echo " FAIL: consul process is alive, but is not listening."
return 2
Expand Down

0 comments on commit 2df9715

Please sign in to comment.