NTP_WAIT(8)

πŸ“¦ version 4.2.8p15, in ubuntu jammy

πŸ’– NTP_WAIT β€” bestie edition πŸ’–

okay so this is NTP_WAIT(8), a System Manager's Manual page, and it's literally about the one thing every server girlie needs: waiting for the clock to chill out. let's get into it 🫢


✨ NAME ✨

ntp-wait β€” wait for ntpd to stabilize the system clock


🌸 SYNOPSIS 🌸

ntp-wait [-flags] [-flag [value]] [--option-name[[=| ]value]]
All arguments must be options. no positional args allowed, periodt. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: ntp-wait sends at most num-tries queries over to ntpd(8), and after every single status return that says ntpd(8) has not yet produced a synchronized and stable system clock, it sleeps for secs-between-tries and tries again. it's giving "are we there yet" but make it daemon. 😭

and it does all of this quietly β€” no yapping β€” unless you hand it the -v flag. πŸ’…

why would you even want this? bestie, boot time. you can use it at boot time to delay the boot sequence until after ntpd -g has set the time. it's the "wait for the glow-up to finish before you walk in" of init scripts. iconic. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

  • -n number, --tries=number β€” how many times we go check on ntpd. this option takes an integer as its argument. the default number for this option is:
100

the maximum number of times we will check ntpd to see if it has been able to synchronize and stabilize the system clock. that's the whole thing. 100 chances, no more. πŸ“

  • -s secs-between-tries, --sleep=secs-between-tries β€” how long we nap between tries. this option takes an integer as its argument. the default secs-between-tries for this option is:
6

we will sleep for secs-between-tries after each query of ntpd that returns "the time is not yet stable". it's a lil power nap between vibe checks. 😴✨

  • -v, --verbose β€” be verbose. πŸ—£οΈ

by default, ntp-wait is silent. with this option, ntp-wait will provide status information. so if you're nosy (respectfully), this is your flag.

  • -?, --help β€” display usage information and exit. the "explain urself" button. πŸ’–
  • -!, --more-help β€” pass the extended usage information through a pager. for when the short version wasn't enough and you need the full lore drop. πŸ“–
  • -v [{v|c|n --version [{v|c|n}]}] β€” output version of program and exit. the default mode is v, a simple version. the c mode will print copyright information and n will print the full copyright notice. yes, -v is doing double duty on this page β€” verbose in one spot, version in the other. she contains multitudes. πŸ’€

πŸ”₯ EXIT STATUS πŸ”₯

one of the following exit values will be returned:

  1. 0 (EXIT_SUCCESS) β€” successful program execution. ate. βœ…
  2. 1 (EXIT_FAILURE) β€” the operation failed or the command syntax was not valid. 🚩
  3. 70 (EX_SOFTWARE) β€” libopts had an internal operational error. please report it to autogen-users@lists.sourceforge.net. thank you. πŸ™ˆ

πŸ’œ AUTHORS πŸ’œ

Harlan Stenn


🌈 NOTES 🌈

  • this document corresponds to version 4.2.8p15 of NTP.
  • this manual page was AutoGen-erated from the ntp-wait option definitions.

and that's the page!! shoutout to Debian, June 23 2020, and the System Manager's Manual for bringing us this absolute banger. go forth and wait for your clock, bestie β€” she'll stabilize eventually. πŸ§šβœ¨πŸ’–

πŸ“¦ where this page comes from