OS Manuals

/usr/bin/wait-for-it

Pure bash script to test and wait on the availability of a TCP host and port

From wait-for-it 0.20200823-r10 (os), captured 2026-11-05 by running wait-for-it --help (exit 1). permalink

Usage:
    wait-for-it host:port [-s] [-t timeout] [-- command args]
    -h HOST | --host=HOST       Host or IP under test
    -p PORT | --port=PORT       TCP port under test
                                Alternatively, you specify the host and port as host:port
    -s | --strict               Only execute subcommand if the test succeeds
    -q | --quiet                Don't output any status messages
    -t TIMEOUT | --timeout=TIMEOUT
                                Timeout in seconds, zero for no timeout
    -- COMMAND ARGS             Execute command with args after the test finishes
Options (4)
OptionDescriptionSource
-h, --host HOSTHost or IP under testhelp
-p, --port PORTTCP port under test Alternatively, you specify the host and port as host:porthelp
-s, --strictOnly execute subcommand if the test succeedshelp
-q, --quietDon't output any status messageshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.