Skip to content

Commit

Permalink
Add success/failure msg to vagrant start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
danwent authored and tgraf committed Mar 17, 2017
1 parent 563b424 commit 3bc0b0a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions contrib/vagrant/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,22 @@ fi
service cilium restart
cilium_started=false
for ((i = 0 ; i < 24; i++)); do
if cilium status > /dev/null 2>&1; then
cilium_started=true
break
fi
sleep 5s
echo "Waiting for Cilium daemon to come up..."
done
if [ "\$cilium_started" = true ] ; then
echo 'Cilium successfully started!'
else
>&2 echo 'Timeout waiting for Cilium to start...'
fi
EOF
}

Expand Down

0 comments on commit 3bc0b0a

Please sign in to comment.