xref: /freebsd/contrib/ntp/scripts/ntp-wait/ntp-wait.1ntp-waitmdoc (revision f5f40dd63bc7acbb5312b26ac1ea1103c12352a6)
1*f5f40dd6SCy Schubert.Dd May 25 2024
22b15cb3dSCy Schubert.Dt NTP_WAIT 1ntp-waitmdoc User Commands
32b15cb3dSCy Schubert.Os
42b15cb3dSCy Schubert.\"  EDIT THIS FILE WITH CAUTION  (ntp-wait-opts.mdoc)
52b15cb3dSCy Schubert.\"
6*f5f40dd6SCy Schubert.\"  It has been AutoGen-ed  May 25, 2024 at 12:05:37 AM by AutoGen 5.18.16
72b15cb3dSCy Schubert.\"  From the definitions    ntp-wait-opts.def
82b15cb3dSCy Schubert.\"  and the template file   agmdoc-cmd.tpl
92b15cb3dSCy Schubert.Sh NAME
102b15cb3dSCy Schubert.Nm ntp-wait
112b15cb3dSCy Schubert.Nd Wait for ntpd to stabilize the system clock
122b15cb3dSCy Schubert.Sh SYNOPSIS
132b15cb3dSCy Schubert.Nm
142b15cb3dSCy Schubert.\" Mixture of short (flag) options and long options
152b15cb3dSCy Schubert.Op Fl flags
162b15cb3dSCy Schubert.Op Fl flag Op Ar value
172b15cb3dSCy Schubert.Op Fl \-option\-name Ns Oo Oo Ns "=| " Oc Ns Ar value Oc
182b15cb3dSCy Schubert.Pp
192b15cb3dSCy SchubertAll arguments must be options.
202b15cb3dSCy Schubert.Pp
212b15cb3dSCy Schubert.Sh DESCRIPTION
222b15cb3dSCy Schubert.Nm
232b15cb3dSCy Schubertwill send at most
242b15cb3dSCy Schubert.Ar num\-tries
252b15cb3dSCy Schubertqueries to
262b15cb3dSCy Schubert.Xr ntpd 8 ,
272b15cb3dSCy Schubertsleeping for
282b15cb3dSCy Schubert.Ar secs\-between\-tries
292b15cb3dSCy Schubertafter each status return that says
302b15cb3dSCy Schubert.Xr ntpd 8
312b15cb3dSCy Schuberthas not yet produced a synchronized and stable system clock.
322b15cb3dSCy Schubert.Pp
332b15cb3dSCy Schubert.Nm
342b15cb3dSCy Schubertwill do this quietly, unless the
352b15cb3dSCy Schubert.Fl v
362b15cb3dSCy Schubertflag is provided.
372b15cb3dSCy SchubertThis can be useful at boot time, to delay the boot sequence until after
382b15cb3dSCy Schubert.Ar ntpd \-g
392b15cb3dSCy Schuberthas set the time.
402b15cb3dSCy Schubert.Sh "OPTIONS"
412b15cb3dSCy Schubert.Bl -tag
422b15cb3dSCy Schubert.It  Fl n Ar number , Fl \-tries Ns = Ns Ar number
432b15cb3dSCy SchubertNumber of times to check ntpd.
442b15cb3dSCy SchubertThis option takes an integer number as its argument.
452b15cb3dSCy SchubertThe default
462b15cb3dSCy Schubert.Ar number
472b15cb3dSCy Schubertfor this option is:
482b15cb3dSCy Schubert.ti +4
492b15cb3dSCy Schubert 100
502b15cb3dSCy Schubert.sp
512b15cb3dSCy Schubert        The maximum number of times we will check \fBntpd\fP to see if
522b15cb3dSCy Schubert        it has been able to synchronize and stabilize the system clock.
532b15cb3dSCy Schubert.It  Fl s Ar secs\-between\-tries , Fl \-sleep Ns = Ns Ar secs\-between\-tries
542b15cb3dSCy SchubertHow long to sleep between tries.
552b15cb3dSCy SchubertThis option takes an integer number as its argument.
562b15cb3dSCy SchubertThe default
572b15cb3dSCy Schubert.Ar secs\-between\-tries
582b15cb3dSCy Schubertfor this option is:
592b15cb3dSCy Schubert.ti +4
602b15cb3dSCy Schubert 6
612b15cb3dSCy Schubert.sp
622b15cb3dSCy Schubert        We will sleep for \fIsecs\-between\-tries\fP after each query
632b15cb3dSCy Schubert        of \fBntpd\fP that returns "the time is not yet stable".
642b15cb3dSCy Schubert.It  Fl v , Fl \-verbose
652b15cb3dSCy SchubertBe verbose.
662b15cb3dSCy Schubert.sp
672b15cb3dSCy Schubert        By default, \fBntp\-wait\fP is silent.
682b15cb3dSCy Schubert        With this option, \fBntp\-wait\fP will provide status information.
692b15cb3dSCy Schubert.It Fl \&? , Fl \-help
702b15cb3dSCy SchubertDisplay usage information and exit.
712b15cb3dSCy Schubert.It Fl \&! , Fl \-more\-help
722b15cb3dSCy SchubertPass the extended usage information through a pager.
732b15cb3dSCy Schubert.It Fl v Op Brq Ar v|c|n  Fl \-version Op Brq Ar v|c|n
742b15cb3dSCy SchubertOutput version of program and exit.  The default mode is `v', a simple
752b15cb3dSCy Schubertversion.  The `c' mode will print copyright information and `n' will
762b15cb3dSCy Schubertprint the full copyright notice.
772b15cb3dSCy Schubert.El
782b15cb3dSCy Schubert.Sh "EXIT STATUS"
792b15cb3dSCy SchubertOne of the following exit values will be returned:
802b15cb3dSCy Schubert.Bl -tag
812b15cb3dSCy Schubert.It 0 " (EXIT_SUCCESS)"
822b15cb3dSCy SchubertSuccessful program execution.
832b15cb3dSCy Schubert.It 1 " (EXIT_FAILURE)"
842b15cb3dSCy SchubertThe operation failed or the command syntax was not valid.
852b15cb3dSCy Schubert.It 70 " (EX_SOFTWARE)"
862b15cb3dSCy Schubertlibopts had an internal operational error.  Please report
872b15cb3dSCy Schubertit to autogen\-users@lists.sourceforge.net.  Thank you.
882b15cb3dSCy Schubert.El
892b15cb3dSCy Schubert.Sh AUTHORS
902b15cb3dSCy Schubert.An "Harlan Stenn"
912b15cb3dSCy Schubert.Sh NOTES
922b15cb3dSCy SchubertThis document corresponds to version @VERSION@ of NTP.
932b15cb3dSCy Schubert.Pp
942b15cb3dSCy SchubertThis manual page was \fIAutoGen\fP\-erated from the \fBntp\-wait\fP
952b15cb3dSCy Schubertoption definitions.
96