xref: /freebsd/contrib/ntp/ntpd/ntpd.texi (revision 416ba5c74546f32a993436a99516d35008e9f384)
1*2b15cb3dSCy Schubert\input texinfo    @c -*-texinfo-*-
2*2b15cb3dSCy Schubert@c %**start of header
3*2b15cb3dSCy Schubert@setfilename ntpd.info
4*2b15cb3dSCy Schubert@settitle ntpd: Network Time Protocol (NTP) Daemon User's Manual
5*2b15cb3dSCy Schubert@include ../sntp/include/version.texi
6*2b15cb3dSCy Schubert@paragraphindent 2
7*2b15cb3dSCy Schubert@c %**end of header
8*2b15cb3dSCy Schubert
9*2b15cb3dSCy Schubert@ifinfo
10*2b15cb3dSCy SchubertThis file documents the use of the NTP Project's ntpd, a program for
11*2b15cb3dSCy Schubertcontrolling ntpd.
12*2b15cb3dSCy Schubert@end ifinfo
13*2b15cb3dSCy Schubert
14*2b15cb3dSCy Schubert@direntry
15*2b15cb3dSCy Schubert* ntpd: (ntpd).                               NTP Daemon program
16*2b15cb3dSCy Schubert@end direntry
17*2b15cb3dSCy Schubert
18*2b15cb3dSCy Schubert@titlepage
19*2b15cb3dSCy Schubert@title ntpd: Network Time Protocol (NTP) Daemon User's Manual
20*2b15cb3dSCy Schubert@subtitle ntpd, version @value{VERSION}, @value{UPDATED}
21*2b15cb3dSCy Schubert@c @author Max @email{foo@ntp.org}
22*2b15cb3dSCy Schubert@end titlepage
23*2b15cb3dSCy Schubert
24*2b15cb3dSCy Schubert@c @page
25*2b15cb3dSCy Schubert@c @vskip 0pt plus 1filll
26*2b15cb3dSCy Schubert
27*2b15cb3dSCy Schubert@node Top, ntpd Description, (dir), (dir)
28*2b15cb3dSCy Schubert@top ntpd: Network Time Protocol (NTP) Daemon User Manual
29*2b15cb3dSCy Schubert
30*2b15cb3dSCy SchubertThe @code{ntpd} program is an operating system daemon that synchronizes the
31*2b15cb3dSCy Schubertsystem clock to remote NTP time servers or local reference clocks.
32*2b15cb3dSCy SchubertIt is a complete implementation of NTP version 4 defined by RFC-5905, but
33*2b15cb3dSCy Schubertalso retains compatible with version 3 defined by RFC-1305 and versions
34*2b15cb3dSCy Schubert1 and 2, defined by RFC-1059 and RFC-1119, respectively.
35*2b15cb3dSCy SchubertThe program can operate in any of several modes, including client/server,
36*2b15cb3dSCy Schubertsymmetric and broadcast modes, and with both symmetric-key and public-key
37*2b15cb3dSCy Schubertcryptography.
38*2b15cb3dSCy Schubert
39*2b15cb3dSCy SchubertThis document applies to version @value{VERSION} of @code{ntpd}.
40*2b15cb3dSCy Schubert
41*2b15cb3dSCy Schubert@shortcontents
42*2b15cb3dSCy Schubert
43*2b15cb3dSCy Schubert@menu
44*2b15cb3dSCy Schubert* ntpd Description::            Description
45*2b15cb3dSCy Schubert* ntpd Invocation::		Invoking ntpd
46*2b15cb3dSCy Schubert* Usage::                       Usage
47*2b15cb3dSCy Schubert@end menu
48*2b15cb3dSCy Schubert
49*2b15cb3dSCy Schubert@node ntpd Description
50*2b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
51*2b15cb3dSCy Schubert@section Description
52*2b15cb3dSCy Schubert
53*2b15cb3dSCy SchubertThe @code{ntpd} program ordinarily requires
54*2b15cb3dSCy Schuberta configuration file described at @ref{ntp.conf}.
55*2b15cb3dSCy SchubertThis configuration file contains configuration commands described on
56*2b15cb3dSCy Schubertthe pages listed above.
57*2b15cb3dSCy SchubertHowever a client can discover remote servers and configure them
58*2b15cb3dSCy Schubertautomatically.
59*2b15cb3dSCy SchubertThis makes it possible to deploy a fleet of workstations without
60*2b15cb3dSCy Schubertspecifying configuration details specific to the local environment.
61*2b15cb3dSCy Schubert
62*2b15cb3dSCy SchubertThe @code{ntpd} program normally operates continuously while adjusting the
63*2b15cb3dSCy Schubertsystem time and frequency, but in some cases this might not be
64*2b15cb3dSCy Schubertpractical.
65*2b15cb3dSCy SchubertWith the @code{-q} option @code{ntpd} operates as in continuous mode, but
66*2b15cb3dSCy Schubertexits just after setting the clock for the first time.
67*2b15cb3dSCy SchubertMost applications will probably want to specify the @code{iburst}
68*2b15cb3dSCy Schubertoption with the @code{server} command.
69*2b15cb3dSCy SchubertWith this option an initial volley of messages is exchanged to
70*2b15cb3dSCy Schubertgroom the data and set the clock in about ten seconds' time.
71*2b15cb3dSCy SchubertIf nothing is heard after a few minutes' time,
72*2b15cb3dSCy Schubertthe daemon times out and exits without setting the clock.
73*2b15cb3dSCy Schubert
74*2b15cb3dSCy Schubert@include invoke-ntpd.texi
75*2b15cb3dSCy Schubert
76*2b15cb3dSCy Schubert@node Usage
77*2b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
78*2b15cb3dSCy Schubert@section Usage
79*2b15cb3dSCy Schubert
80*2b15cb3dSCy Schubert@multitable @columnfractions .23 .23 .05 .15
81*2b15cb3dSCy Schubert@headitem What @tab Default @tab Flag @tab Option
82*2b15cb3dSCy Schubert@item configuration file
83*2b15cb3dSCy Schubert@tab @code{/etc/ntp.conf}
84*2b15cb3dSCy Schubert@tab @code{-c}
85*2b15cb3dSCy Schubert@tab @code{conffile}
86*2b15cb3dSCy Schubert@item frequency file
87*2b15cb3dSCy Schubert@tab none
88*2b15cb3dSCy Schubert@tab @code{-f}
89*2b15cb3dSCy Schubert@tab @code{driftfile}
90*2b15cb3dSCy Schubert@item leapseconds file
91*2b15cb3dSCy Schubert@tab none
92*2b15cb3dSCy Schubert@tab
93*2b15cb3dSCy Schubert@tab @code{leapfile}
94*2b15cb3dSCy Schubert@item process ID file
95*2b15cb3dSCy Schubert@tab none
96*2b15cb3dSCy Schubert@tab @code{-p}
97*2b15cb3dSCy Schubert@tab @code{pidfile}
98*2b15cb3dSCy Schubert@item log file
99*2b15cb3dSCy Schubert@tab system log
100*2b15cb3dSCy Schubert@tab @code{-l}
101*2b15cb3dSCy Schubert@tab @code{logfile}
102*2b15cb3dSCy Schubert@item include file
103*2b15cb3dSCy Schubert@tab none
104*2b15cb3dSCy Schubert@tab none
105*2b15cb3dSCy Schubert@tab @code{includefile}
106*2b15cb3dSCy Schubert@item statistics path
107*2b15cb3dSCy Schubert@tab @code{/var/NTP}
108*2b15cb3dSCy Schubert@tab @code{-s}
109*2b15cb3dSCy Schubert@tab @code{statsdir}
110*2b15cb3dSCy Schubert@item keys path
111*2b15cb3dSCy Schubert@tab @code{/usr/local/etc}
112*2b15cb3dSCy Schubert@tab @code{-k}
113*2b15cb3dSCy Schubert@tab @code{keysdir}
114