Last active
April 4, 2017 04:46
-
-
Save radimih/361b507896b8654faf1fbaadb29c13fe to your computer and use it in GitHub Desktop.
bash: ожидание доступности сервиса на порту
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 -z {host} {port} | |
do | |
sleep 3 | |
done | |
echo "+++ Service is ready +++" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment