12b3787f6Schristos/* -*- Mode: Text -*- */ 2*1b6f2cd4SchristosAutoGen Definitions perlopt; 32b3787f6Schristos 42b3787f6Schristos#include autogen-version.def 52b3787f6Schristos 62b3787f6Schristosprog-name = "ntp-wait"; 72b3787f6Schristosprog-title = "Wait for ntpd to stabilize the system clock"; 82b3787f6Schristospackage = ntp; 9*1b6f2cd4Schristos#include version.def 10*1b6f2cd4Schristos 112b3787f6Schristoslong-opts; 122b3787f6Schristosgnu-usage; 132b3787f6Schristos 142b3787f6Schristosflag = { 152b3787f6Schristos name = tries; 162b3787f6Schristos value = n; 172b3787f6Schristos arg-type = number; 182b3787f6Schristos arg-default = 100; 192b3787f6Schristos descrip = "Number of times to check ntpd"; 202b3787f6Schristos doc = <<- _EndOfDoc_ 212b3787f6Schristos The maximum number of times we will check @code{ntpd} to see if 222b3787f6Schristos it has been able to synchronize and stabilize the system clock. 232b3787f6Schristos _EndOfDoc_; 242b3787f6Schristos}; 252b3787f6Schristos 262b3787f6Schristosflag = { 272b3787f6Schristos name = sleep; 282b3787f6Schristos value = s; 292b3787f6Schristos arg-type = number; 302b3787f6Schristos arg-name = "secs-between-tries"; 312b3787f6Schristos arg-default = 6; 322b3787f6Schristos descrip = "How long to sleep between tries"; 332b3787f6Schristos doc = <<- _EndOfDoc_ 342b3787f6Schristos We will sleep for @file{secs-between-tries} after each query 352b3787f6Schristos of @code{ntpd} that returns "the time is not yet stable". 362b3787f6Schristos _EndOfDoc_; 372b3787f6Schristos}; 382b3787f6Schristos 392b3787f6Schristosflag = { 402b3787f6Schristos name = verbose; 412b3787f6Schristos value = v; 422b3787f6Schristos descrip = "Be verbose"; 432b3787f6Schristos doc = <<- _EndOfDoc_ 442b3787f6Schristos By default, @code{ntp-wait} is silent. 452b3787f6Schristos With this option, @code{ntp-wait} will provide status information. 462b3787f6Schristos _EndOfDoc_; 472b3787f6Schristos}; 482b3787f6Schristos 492b3787f6Schristosexplain = <<- _END_EXPLAIN 502b3787f6Schristos _END_EXPLAIN; 512b3787f6Schristos 522b3787f6Schristosdoc-section = { 532b3787f6Schristos ds-type = 'DESCRIPTION'; 542b3787f6Schristos ds-format = 'mdoc'; 552b3787f6Schristos ds-text = <<- _END_PROG_MDOC_DESCRIP 562b3787f6Schristos.Nm 572b3787f6Schristoswill send at most 582b3787f6Schristos.Ar num-tries 592b3787f6Schristosqueries to 602b3787f6Schristos.Xr ntpd 8 , 612b3787f6Schristossleeping for 622b3787f6Schristos.Ar secs-between-tries 632b3787f6Schristosafter each status return that says 642b3787f6Schristos.Xr ntpd 8 652b3787f6Schristoshas not yet produced a synchronized and stable system clock. 662b3787f6Schristos.Pp 672b3787f6Schristos.Nm 682b3787f6Schristoswill do this quietly, unless the 692b3787f6Schristos.Fl v 702b3787f6Schristosflag is provided. 712b3787f6SchristosThis can be useful at boot time, to delay the boot sequence until after 722b3787f6Schristos.Ar ntpd -g 732b3787f6Schristoshas set the time. 742b3787f6Schristos _END_PROG_MDOC_DESCRIP; 752b3787f6Schristos}; 762b3787f6Schristos 772b3787f6Schristos/* 782b3787f6Schristosdoc-section = { 792b3787f6Schristos ds-type = 'USAGE'; 802b3787f6Schristos ds-format = 'mdoc'; 812b3787f6Schristos ds-text = <<- _END_MDOC_USAGE 822b3787f6Schristos _END_MDOC_USAGE; 832b3787f6Schristos}; 842b3787f6Schristos*/ 852b3787f6Schristos 862b3787f6Schristosdoc-section = { 872b3787f6Schristos ds-type = 'AUTHORS'; 882b3787f6Schristos ds-format = 'mdoc'; 892b3787f6Schristos ds-text = <<- _END_MDOC_AUTH 902b3787f6Schristos.An "Harlan Stenn" 912b3787f6Schristos _END_MDOC_AUTH; 922b3787f6Schristos}; 932b3787f6Schristos 942b3787f6Schristosdoc-section = { 952b3787f6Schristos ds-type = 'NOTES'; 962b3787f6Schristos ds-format = 'mdoc'; 972b3787f6Schristos ds-text = <<- _END_MDOC_NOTES 982b3787f6SchristosThis document corresponds to version @VERSION@ of NTP. 992b3787f6Schristos _END_MDOC_NOTES; 1002b3787f6Schristos}; 1012b3787f6Schristos 1022b3787f6Schristos/* 1032b3787f6Schristosdoc-section = { 1042b3787f6Schristos ds-type = 'BUGS'; 1052b3787f6Schristos ds-format = 'mdoc'; 1062b3787f6Schristos ds-text = <<- _END_MDOC_BUGS 1072b3787f6Schristos _END_MDOC_BUGS; 1082b3787f6Schristos}; 1092b3787f6Schristos*/ 110