Skip to content

Instantly share code, notes, and snippets.

@radimih
Last active April 4, 2017 04:46
Show Gist options
  • Save radimih/361b507896b8654faf1fbaadb29c13fe to your computer and use it in GitHub Desktop.
Save radimih/361b507896b8654faf1fbaadb29c13fe to your computer and use it in GitHub Desktop.
bash: ожидание доступности сервиса на порту
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