Skip to content

Instantly share code, notes, and snippets.

@MBtech
Created November 13, 2015 17:29
Show Gist options
  • Save MBtech/f6466983d7a40313637a to your computer and use it in GitHub Desktop.
Save MBtech/f6466983d7a40313637a to your computer and use it in GitHub Desktop.
Wait till a service is running in unix
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