Created
November 13, 2015 17:29
-
-
Save MBtech/f6466983d7a40313637a to your computer and use it in GitHub Desktop.
Wait till a service is running in unix
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
while ! nc -q 1 localhost 2181 </dev/null; do echo "Waiting"; sleep 1; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment