S6-CLOCKADD(8)

πŸ“¦ version 2.8.0.1, in nixpkgs unstable

πŸ’… S6-CLOCKADD β€” the system manager's manual, but make it cute

okay so bestie, you're looking at s6-clockadd from section 8 of the System Manager's Manual, and honestly? it's giving tiny-but-mighty. ✨

🌸 NAME 🌸

s6-clockadd β€” adjust the system clock depending on the input that a time client hands you πŸ•°οΈ

πŸŽ€ SYNOPSIS πŸŽ€

s6-clockadd [-f] [-e errmax]

✨ DESCRIPTION ✨

So here's the tea: s6-clockadd sits there reading its stdin, and it's expecting input from a program like s6-taiclock(8) or s6-sntpclock(8) β€” you know, the ones that go get the time from a time server. 🌐

Then it does the main character thing: it sets the system clock so that the system time becomes the exact time the server gave it. And then? It exits 0. Slay. πŸ’…

bestie, important: s6-clockadd must be run as root. πŸ”‘ The client that fetches the time from the time server, though? That one does not have to be root. lowkey the best division of labour tbh.

πŸ”₯ OPTIONS πŸ”₯

  • -f β€” Force. Normally s6-clockadd exits 1 if the time discrepancy it reads from stdin is bigger than errmax milliseconds. But with this flag set, it'll print a warning message and still set the system time, and then exit 0. It's like "yeah I know, but we're doing it anyway" energy. πŸ™ˆ
  • -e errmax β€” Accept a maximum time discrepancy of errmax milliseconds. By default, errmax is 2000. ⏱️

πŸ¦‹ SEE ALSO πŸ¦‹

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-networking/s6-clockadd.html β€” go check the source, iykyk 🫢

πŸ‘‘ AUTHORS πŸ‘‘

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> (man page port)

and that's the whole vibe check, bestie β€” this one's from Debian, dated September 29, 2021, and it's S6-CLOCKADD(8) all the way down. now go sync that clock, you icon. β­πŸŒˆπŸ’–

πŸ“¦ where this page comes from