]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Update documentation templates and definitions
authorHarlan Stenn <stenn@ntp.org>
Wed, 12 Dec 2012 09:52:10 +0000 (09:52 +0000)
committerHarlan Stenn <stenn@ntp.org>
Wed, 12 Dec 2012 09:52:10 +0000 (09:52 +0000)
bk: 50c853caP1JGcdl0h8h87Lx3M4ZTVQ

.point-changed-filelist
ntpd/Makefile.am
ntpd/ntpd.texi [new file with mode: 0644]

index 250a3ee62bc0501a2644b6dc308e81f1ab8ea26a..db0e04a7c6e146f714a157abe83676fa73bc5060 100644 (file)
@@ -16,6 +16,7 @@ ntpd/ntpd-opts.c
 ntpd/ntpd-opts.h
 ntpd/ntpd.1ntpdman
 ntpd/ntpd.1ntpdmdoc
+ntpd/ntpd.html
 ntpd/ntpd.man.in
 ntpd/ntpd.mdoc.in
 ntpdc/invoke-ntpdc.texi
index 7993632fb9dae968ced686d35c7fabb2b075091d..f97e49b545898bee15b0eb3260a9d4cba7eec37e 100644 (file)
@@ -141,6 +141,8 @@ EXTRA_DIST =                        \
        ntpd.1ntpdmdoc          \
        ntpd.man.in             \
        ntpd.mdoc.in            \
+       ntpd.html               \
+       ntpd.texi               \
        ntpdbase-opts.def       \
        refclock_msfees.c       \
        $(B_S_DIST)             \
@@ -153,6 +155,7 @@ EXTRA_PROGRAMS = check_y2k keyword-gen ntpd ntpdsim
 html_DATA=                             \
        $(srcdir)/ntp.conf.html         \
        $(srcdir)/ntp.keys.html         \
+       $(srcdir)/ntpd.html             \
        $(NULL)
 
 noinst_DATA =                          \
@@ -339,6 +342,9 @@ $(srcdir)/ntp.conf.html: $(srcdir)/ntp.conf.texi $(top_srcdir)/sntp/include/vers
 $(srcdir)/ntp.keys.html: $(srcdir)/ntp.keys.texi $(top_srcdir)/sntp/include/version.texi
        cd $(srcdir) && ( makeinfo --force --html --no-split -o ntp.keys.html ntp.keys.texi || true )
 
+$(srcdir)/ntpd.html: $(srcdir)/ntpd.texi $(top_srcdir)/sntp/include/version.texi
+       cd $(srcdir) && ( makeinfo --force --html --no-split -o ntpd.html ntpd.texi || true )
+
 ###
 
 $(srcdir)/ntp.conf.5man: $(srcdir)/ntp.conf.def $(std_def_list)
diff --git a/ntpd/ntpd.texi b/ntpd/ntpd.texi
new file mode 100644 (file)
index 0000000..7eb8667
--- /dev/null
@@ -0,0 +1,113 @@
+\input texinfo    @c -*-texinfo-*-
+@c %**start of header
+@setfilename ntpd.info
+@settitle ntpd: Network Time Protocol (NTP) Daemon User's Manual
+@include include/version.texi
+@paragraphindent 2
+@c %**end of header
+
+@ifinfo
+This file documents the use of the NTP Project's ntpd, a program for
+controlling ntpd.
+@end ifinfo
+
+@direntry
+* ntpd: (ntpd).                               NTP Daemon program
+@end direntry
+
+@titlepage
+@title ntpd: Network Time Protocol (NTP) Daemon User's Manual
+@subtitle ntpd, version @value{VERSION}, @value{UPDATED}
+@c @author Max @email{foo@ntp.org}
+@end titlepage
+
+@c @page
+@c @vskip 0pt plus 1filll
+
+@node Top, ntpd Description, (dir), (dir)
+@top ntpd: Network Time Protocol (NTP) Daemon User Manual
+
+The @code{ntpd} program is an operating system daemon that synchronizes the
+system clock to remote NTP time servers or local reference clocks.
+It is a complete implementation of NTP version 4 defined by RFC-5905, but
+also retains compatible with version 3 defined by RFC-1305 and versions
+1 and 2, defined by RFC-1059 and RFC-1119, respectively.
+The program can operate in any of several modes, including client/server,
+symmetric and broadcast modes, and with both symmetric-key and public-key
+cryptography.
+
+This document applies to version @value{VERSION} of @code{ntpd}.
+
+@shortcontents
+
+@menu
+* ntpd Description::            Description
+* ntpd Invocation::            Invoking ntpd
+* Usage::                       Usage
+@end menu
+
+@node ntpd Description
+@comment  node-name,  next,  previous,  up
+@section Description
+
+The @code{ntpd} program ordinarily requires
+a configuration file described at @ref{ntp.conf}.
+This configuration file contains configuration commands described on
+the pages listed above.
+However a client can discover remote servers and configure them
+automatically.
+This makes it possible to deploy a fleet of workstations without
+specifying configuration details specific to the local environment.
+
+The @code{ntpd} program normally operates continuously while adjusting the
+system time and frequency, but in some cases this might not be
+practical.
+With the @code{-q} option @code{ntpd} operates as in continuous mode, but
+exits just after setting the clock for the first time.
+Most applications will probably want to specify the @code{iburst}
+option with the @code{server} command.
+With this option an initial volley of messages is exchanged to
+groom the data and set the clock in about ten seconds' time.
+If nothing is heard after a few minutes' time,
+the daemon times out and exits without setting the clock.
+
+@include invoke-ntpd.texi
+
+@node Usage
+@comment  node-name,  next,  previous,  up
+@section Usage
+
+@multitable @columnfractions .23 .23 .05 .15
+@headitem What @tab Default @tab Flag @tab Option
+@item configuration file
+@tab @code{/etc/ntp.conf}
+@tab @code{-c}
+@tab @code{conffile}
+@item frequency file
+@tab none
+@tab @code{-f}
+@tab @code{driftfile}
+@item leapseconds file
+@tab none
+@tab
+@tab @code{leapfile}
+@item process ID file
+@tab none
+@tab @code{-p}
+@tab @code{pidfile}
+@item log file
+@tab system log
+@tab @code{-l}
+@tab @code{logfile}
+@item include file
+@tab none
+@tab none
+@tab @code{includefile}
+@item statistics path
+@tab @code{/var/NTP}
+@tab @code{-s}
+@tab @code{statsdir}
+@item keys path
+@tab @code{/usr/local/etc}
+@tab @code{-k}
+@tab @code{keysdir}