.Nm
is running
using the
-.Xr ntpq 8
+.Xr ntpq 1ntpqmdoc
and
-.Xr ntpdc 8
+.Xr ntpdc 1ntpdcmdoc
utility programs.
.Pp
When
.Pp
Finally,
in the past many startup scripts would run
-.Xr ntpdate 8
+.Xr ntpdate 1ntpdatemdoc
to get the system clock close to correct before starting
-.Xr ntpd 8 ,
+.Xr ntpd 1ntpdmdoc ,
but this was never more than a mediocre hack and is no longer needed.
.Pp
There is a way to start
-.Xr ntpd 8
+.Xr ntpd 1ntpdmdoc
that often addresses all of the problems mentioned above.
.Ss "Starting NTP (Best Current Practice)"
First, use the
If you can also keep a good
.Pa ntp.drift
file then
-.Xr ntpd 8
+.Xr ntpd 1ntpdmdoc
will effectively "warm-start" and your system's clock will
be stable in under 11 seconds' time.
.Pp
As soon as possible in the startup sequence, start
-.Xr ntpd 8
+.Xr ntpd 1ntpdmdoc
with at least the
.Fl g
and perhaps the
Then,
start the rest of your "normal" processes.
This will give
-.Xr ntpd 8
+.Xr ntpd 1ntpdmdoc
as much time as possible to get the system's clock synchronized and stable.
.Pp
Finally,
that require
monotonically-increasing time,
run
-.Xr ntp-wait 8
+.Xr ntp-wait 1ntp-waitmdoc
as late as possible in the boot sequence
(perhaps with the
.Fl v
flag)
and after
-.Xr ntp-wait 8
+.Xr ntp-wait 1ntp-waitmdoc
exits successfully
it is as safe as it will ever be to start any process that require
stable time.
to run
continuously.
A common workaround has been to run the
-.Xr ntpdate 8
+.Xr ntpdate 1ntpdatemdoc
program from a
.Xr cron 8
job at designated
couple of minutes, the daemon times out and exits.
After a suitable
period of mourning, the
-.Xr ntpdate 8
+.Xr ntpdate 1ntpdatemdoc
program may be
retired.
.Pp
ds-format = 'mdoc';
ds-text = <<- _END_MDOC_SEE_ALSO
.Xr ntp.conf 5 ,
-.Xr ntpdate 8 ,
-.Xr ntpdc 8 ,
-.Xr ntpq 8
+.Xr ntpdate 1ntpdatemdoc ,
+.Xr ntpdc 1ntpdcmdoc ,
+.Xr ntpq 1ntpqmdoc
.Pp
In addition to the manual pages provided,
comprehensive documentation is available on the world wide web
ds-text = <<- _END_PROG_MDOC_DESCRIP
.Nm
is a utility program used to query
-.Xr ntpd 8
+.Xr ntpd 1ntpdmdoc
about its
current state and to request changes in that state.
It uses NTP mode 7 control message formats described in the source code.
.Nm
are specific to the particular
implementation of the
-.Xr ntpd 8
+.Xr ntpd 1ntpdmdoc
daemon and can be expected to
work only with this and maybe some previous versions of the daemon.
Requests from a remote
information about the command.
This command is probably a better
source of information about
-.Xr ntpq 8
+.Xr ntpq 1ntpqmdoc
than this manual
page.
.It Ic delay Ar milliseconds
.Cm stats
flags.
See the
-.Xr ntpd 8
+.Xr ntpd 1ntpdmdoc
documentation for the meaning of these flags.
There
are two additional flags which are read only, the
and
.Ic disable
configuration file commands of
-.Xr ntpd 8 .
+.Xr ntpd 1ntpdmdoc .
.Bl -tag -width indent
.It Cm auth
Enables the server to synchronize with unconfigured peers only
The default for this flag is enable if support is available, otherwise disable.
.It Cm monitor
Enables the monitoring facility.
-See the
-.Xr ntpdc 8 .
-program and the monlist command or further information.
+See the documentation here about the
+.Cm monlist
+command or further information.
The default for this flag is enable.
.It Cm ntp
Enables time and frequency discipline.
This command operates in the same way as the
.Ic restrict
configuration file commands of
-.Xr ntpd 8 .
+.Xr ntpd 1ntpdmdoc .
.It Xo Ic unrestrict Ar address Ar mask
.Ar flag Oo Ar ... Oc
.Xc
Causes the current set of authentication keys to be purged and
a new set to be obtained by rereading the keys file (which must
have been specified in the
-.Xr ntpd 8
+.Xr ntpd 1ntpdmdoc
configuration file).
This
allows encryption keys to be changed without restarting the
.Ic untrustedkey
configuration file
commands of
-.Xr ntpd 8 .
+.Xr ntpd 1ntpdmdoc .
.It Ic authinfo
Returns information concerning the authentication module,
including known keys and counts of encryptions and decryptions
ds-format = 'mdoc';
ds-text = <<- _END_MDOC_SEEALSO
.Xr ntp.conf 5 ,
-.Xr ntpd 8
+.Xr ntpd 1ntpdmdoc
.Rs
.%A David L. Mills
.%T Network Time Protocol (Version 3)
flags-cant = command, peers;
descrip = "Force ntpq to operate in interactive mode";
doc = <<- _EndOfDoc_
- Force ntpq to operate in interactive mode. Prompts will be written
- to the standard output and commands read from the standard input.
+ Force @code{ntpq} to operate in interactive mode.
+ Prompts will be written to the standard output and
+ commands read from the standard input.
_EndOfDoc_;
};
name = old-rv;
descrip = "Always output status line with readvar";
doc = <<- _EndOfDoc_
- By default, ntpq now suppresses the associd=... line that
- precedes the output of "readvar" (alias "rv") when a single
- variable is requested, such as ntpq -c "rv 0 offset". This
- option causes ntpq to include both lines of output for a
- single-variable readvar. Using an environment variable to
+ By default, @code{ntpq} now suppresses the @code{associd=...}
+ line that precedes the output of @code{readvar}
+ (alias @code{rv}) when a single variable is requested, such as
+ @code{ntpq -c "rv 0 offset"}.
+ This option causes @code{ntpq} to include both lines of output
+ for a single-variable @code{readvar}.
+ Using an environment variable to
preset this option in a script will enable both older and
- newer ntpq to behave identically in this regard.
+ newer @code{ntpq} to behave identically in this regard.
_EndOfDoc_;
};
arg-default = 100;
descrip = "Number of times to check ntpd";
doc = <<- _EndOfDoc_
- The maximum number of times we will check ntpd to see if it
- has been able to synchronize and stabilize the system clock.
+ The maximum number of times we will check @code{ntpd} to see if
+ it has been able to synchronize and stabilize the system clock.
_EndOfDoc_;
};
arg-default = 6;
descrip = "How long to sleep between tries";
doc = <<- _EndOfDoc_
- We will sleep for @file{secs-between-tries} after each query of ntpd
- that returns "the time is not yet stable".
+ We will sleep for @file{secs-between-tries} after each query
+ of @code{ntpd} that returns "the time is not yet stable".
_EndOfDoc_;
};
value = v;
descrip = "Be verbose";
doc = <<- _EndOfDoc_
- By default, ntp-wait is silent. With this option, ntp-wait
- will provide status information.
+ By default, @code{ntp-wait} is silent.
+ With this option, @code{ntp-wait} will provide status information.
_EndOfDoc_;
};