man(8)
π wait-for-it β the man page but make it slay π
okay bestie, so this is man(8) β section 8 of the manual, the "system administration / daemons and stuff" section, iykyk. It's the page for wait-for-it, and honestly? She's iconic. Let's get into it. π
β¨ NAME β¨
wait-for-it β a script that tests and waits on the availability of a TCP host and port π¦
β¨ SYNOPSIS β¨
wait-for-it host:port [-s] [-t timeout] [-- command args]
that's it. that's the whole vibe. π
β¨ DESCRIPTION β¨
wait-for-it is a pure bash script that will wait on the availability of a host and TCP port. πΈ
The way this is SO useful: it's for synchronizing the spin-up of interdependent services β like, think linked docker containers, where one thing literally cannot start until its bestie is up and listening. π«Ά
And because she's a pure bash script, she has no external dependencies at all. No extra packages, no drama, no "oops you need to install this first." Just bash. Periodt. πβ¨
β¨ OPTIONS β¨
-h HOST,--host=HOSTβ the host or IP you're putting under test π-p PORT,--port=PORTβ the TCP port under test π-s,--strictβ only execute the subcommand if the test actually succeeds. no success, no run. strict queen behavior π€-q,--quietβ don't output any status messages. silent. mysterious. lowkey π€«-t TIMEOUT,--timeout=TIMEOUTβ timeout in seconds, and zero means no timeout (as in, she will wait forever, bestie, she is patient) β³-- COMMAND ARGSβ execute the command with its args after the test finishes πβοΈπ¨
β¨ AUTHOR β¨
Giles Hall π
and that's the whole page, no cap. This one's rocking version 1.0, dated 29 April 2016 β an absolute vintage icon, she was slaying before most of us even had a terminal open π β¨ mwah, go wait on that port bestie ππ¦
π¦ where this page comes from
- debian bookworm: wait-for-it 0.0~git20180723-1 Β· MIT
- debian trixie: wait-for-it 0.0~git20180723-1 Β· MIT
- ubuntu jammy: wait-for-it 0.0~git20180723-1 Β· MIT
- ubuntu noble: wait-for-it 0.0~git20180723-1 Β· MIT
- ubuntu questing: wait-for-it 0.0~git20180723-1
- ubuntu resolute: wait-for-it 0.0~git20180723-1build1 Β· MIT
- ubuntu stonking: wait-for-it 0.0~git20180723-1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms