PROPHET/OS

NAME

ntpv: a persistent vigil

SYNOPSIS

ntpv [server]

DESCRIPTION

A persistent vigil: asks what time it is and tells the clock.

The first answer steps the clock, later ones teach it its rate, so it runs right in between instead of jumping every interval.

An answer is only taken when it comes from the configured server, on its own port, in server mode, with a sane stratum. Anything else is skipped, not believed: the whole point of a time client is that it is the one thing on the machine that trusts a packet about what "now" is.

With a server on the line it asks that one, once, and returns. Without one it reads /system/config/net/ntp and runs as a service.

EXAMPLE

$ ntpv --help
ntpv [server]
  a persistent vigil: asks what time it is and tells the
  clock, once every `pitch` seconds. The first answer
  steps it, later ones teach it its rate, so it runs right
  in between. Only an answer from the configured server,
  on its own port, in server mode, with a sane stratum, is
  taken; anything else is skipped, not believed.
  with a server: ask that one, once, and return (by hand)
  without: /system/config/net/ntp, as a service

SEE ALSO

date, vigil, ip