DOKK / manpages / debian 11 / wait-for-it / wait-for-it.8.en
man(8) wait-for-it man page man(8)

wait-for-it - script to test and wait on the availability of a TCP host and port

wait-for-it host:port [-s] [-t timeout] [-- command args]

wait-forit is a pure bash script that will wait on the availability of a host and TCP port. It is useful for synchronizing the spin-up of interdependent services, such as linked docker containers. Since it is a pure bash script, it does not have any external dependencies.

-h HOST, --host=HOST Host or IP under test

TCP port under test
Only execute subcommand if the test succeeds
Don't output any status messages
Timeout in seconds, zero for no timeout
Execute command with args after the test finishes

Giles Hall

29 April 2016 1.0