Skip to content

Instantly share code, notes, and snippets.

@arkka
Created August 11, 2016 01:11
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 arkka/e73a2b74882b34889a838c0c561b70e0 to your computer and use it in GitHub Desktop.
Save arkka/e73a2b74882b34889a838c0c561b70e0 to your computer and use it in GitHub Desktop.
Bash script wait/listen from http conditional
echo "Waiting for startup.."
until curl http://${MONGODB1}:28017/serverStatus\?text\=1 2>&1 | grep uptime | head -1; do
printf '.'
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment