Skip to content

Instantly share code, notes, and snippets.

@astail
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astail/60d50be69bbf2f0d7e2a to your computer and use it in GitHub Desktop.
Save astail/60d50be69bbf2f0d7e2a to your computer and use it in GitHub Desktop.
#!/bin/sh
port=9999
while true
do
http_status=`curl -LI localhost:$port/health_check -o /dev/null -w '%{http_code}\n' -s`
if [ "$http_status" == "200" ]; then
break
fi
sleep 5s
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment