#
# EDIT THIS FILE WITH CAUTION (ntpd-opts.texi)
#
-# It has been AutoGen-ed July 9, 2010 at 10:07:23 AM by AutoGen 5.10
+# It has been AutoGen-ed July 9, 2010 at 11:32:03 PM by AutoGen 5.10
# From the definitions ntpd-opts.def
# and the template file aginfo.tpl
@end ignore
* ntpd usepcc:: usepcc option
* ntpd user:: user option (-u)
* ntpd var:: var option
+* ntpd wait-sync:: wait-sync option (-w)
@end menu
@node ntpd usage
@exampleindent 0
@example
ntpd - NTP daemon program - Ver. 4.2.7p39
-USAGE: ntpd [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
+USAGE: ntpd [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... \
+ [ <server1> ... <serverN> ]
Flg Arg Option-Name Description
-4 no ipv4 Force IPv4 DNS name resolution
- prohibits these options:
-l Str logfile path to the log file
-L no novirtualips Do not listen to virtual interfaces
-n no nofork Do not fork
+ - prohibits these options:
+ wait-sync
-N no nice Run at high priority
-p Str pidfile path to the PID file
-P Num priority Process priority
-q no quit Set the time and quit
+ - prohibits these options:
+ saveconfigquit
+ wait-sync
-r Str propagationdelay Broadcast/propagation delay
Str saveconfigquit Save parsed configuration and quit
+ - prohibits these options:
+ quit
+ wait-sync
-s Str statsdir Statistics file location
-t Str trustedkey Trusted key number
- may appear multiple times
- may appear multiple times
Str dvar make ARG an ntp variable (RW|DEF)
- may appear multiple times
+ -w Str wait-sync Seconds to wait for first clock sync
+ - prohibits these options:
+ nofork
+ quit
+ saveconfigquit
-x no slew Slew up to 600 seconds
- opt version Output version information and exit
+ -! opt version Output version information and exit
-? no help Display extended usage information and exit
-! no more-help Extended usage information passed thru pager
This is the ``do not fork'' option.
+This option has some usage constraints. It:
+@itemize @bullet
+@item
+must not appear in combination with any of the following options:
+wait-sync.
+@end itemize
+
+
@node ntpd nice
@subsection nice option (-N)
@cindex ntpd-quit
This is the ``set the time and quit'' option.
+
+This option has some usage constraints. It:
+@itemize @bullet
+@item
+must not appear in combination with any of the following options:
+saveconfigquit, wait-sync.
+@end itemize
+
ntpd
-will exit just after the first time the clock is set. This behavior mimics that of the
+will not daemonize and will exit after the clock is first
+synchronized. This behavior mimics that of the
ntpdate
-program, which is to be retired.
+program, which will soon be replaced with a shell script.
The
-g
and
@itemize @bullet
@item
must be compiled in by defining @code{SAVECONFIG} during the compilation.
+@item
+must not appear in combination with any of the following options:
+quit, wait-sync.
@end itemize
Cause ntpd to parse its startup configuration file and save an
+@node ntpd wait-sync
+@subsection wait-sync option (-w)
+@cindex ntpd-wait-sync
+
+This is the ``seconds to wait for first clock sync'' option.
+
+This option has some usage constraints. It:
+@itemize @bullet
+@item
+must be compiled in by defining @code{HAVE_WORKING_FORK} during the compilation.
+@item
+must not appear in combination with any of the following options:
+nofork, quit, saveconfigquit.
+@end itemize
+
+If greater than zero, alters ntpd behavior when forking to
+daemonize. Instead of exiting with status 0 immediately after
+the fork, the parent waits up to the specified number of
+seconds for the child to first synchronize the clock. The exit
+status is zero (success) if the clock was synchronized,
+otherwise it is ETIMEDOUT.
+This provides the option for a script starting ntpd to easily
+wait for the first set of the clock before proceeding.
+
@node ntpd slew
@subsection slew option (-x)
@cindex ntpd-slew
.TH NTPD 1 2010-07-09 "( 4.2.7p39)" "Programmer's Manual"
.\" EDIT THIS FILE WITH CAUTION (ntpd.1)
.\"
-.\" It has been AutoGen-ed July 9, 2010 at 10:07:22 AM by AutoGen 5.10
+.\" It has been AutoGen-ed July 9, 2010 at 11:32:03 PM by AutoGen 5.10
.\" From the definitions ntpd-opts.def
.\" and the template file agman1.tpl
.\"
.B ntpd
.\" Mixture of short (flag) options and long options
.RB [ \-\fIflag\fP " [\fIvalue\fP]]... [" \--\fIopt-name\fP " [[=| ]\fIvalue\fP]]..."
-.PP
-All arguments must be options.
+.br
+.in +8
+[ <server1> ... <serverN> ]
.SH "DESCRIPTION"
This manual page briefly documents the \fBntpd\fP command.
.TP
.BR \-n ", " \--nofork
Do not fork.
+This option must not appear in combination with any of the following options:
+wait-sync.
.sp
.TP
.TP
.BR \-q ", " \--quit
Set the time and quit.
+This option must not appear in combination with any of the following options:
+saveconfigquit, wait-sync.
.sp
ntpd
-will exit just after the first time the clock is set. This behavior mimics that of the
+will not daemonize and will exit after the clock is first
+synchronized. This behavior mimics that of the
ntpdate
-program, which is to be retired.
+program, which will soon be replaced with a shell script.
The
-g
and
.TP
.BR \--saveconfigquit "=\fIstring\fP"
Save parsed configuration and quit.
+This option must not appear in combination with any of the following options:
+quit, wait-sync.
.sp
Cause ntpd to parse its startup configuration file and save an
equivalent to the given filename and exit. This option was
This option may appear an unlimited number of times.
.sp
+.TP
+.BR \-w " \fIstring\fP, " \--wait-sync "=" \fIstring\fP
+Seconds to wait for first clock sync.
+This option must not appear in combination with any of the following options:
+nofork, quit, saveconfigquit.
+.sp
+If greater than zero, alters ntpd behavior when forking to
+daemonize. Instead of exiting with status 0 immediately after
+the fork, the parent waits up to the specified number of
+seconds for the child to first synchronize the clock. The exit
+status is zero (success) if the clock was synchronized,
+otherwise it is ETIMEDOUT.
+This provides the option for a script starting ntpd to easily
+wait for the first set of the clock before proceeding.
.TP
.BR \-x ", " \--slew
Slew up to 600 seconds.