Created
August 11, 2016 01:11
-
-
Save arkka/e73a2b74882b34889a838c0c561b70e0 to your computer and use it in GitHub Desktop.
Bash script wait/listen from http conditional
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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