Home | History | Annotate | Line # | Download | only in update-leap
update-leap.1update-leapmdoc revision 1.1.1.11
      1 .Dd March 3 2020
      2 .Dt UPDATE_LEAP 1update-leapmdoc User Commands
      3 .Os
      4 .\"  EDIT THIS FILE WITH CAUTION  (update-leap-opts.mdoc)
      5 .\"
      6 .\"  It has been AutoGen-ed  March  3, 2020 at 05:42:07 PM by AutoGen 5.18.5
      7 .\"  From the definitions    update-leap-opts.def
      8 .\"  and the template file   agmdoc-cmd.tpl
      9 .Sh NAME
     10 .Nm update-leap
     11 .Nd leap-seconds file manager/updater
     12 .Sh SYNOPSIS
     13 .Nm
     14 .\" Mixture of short (flag) options and long options
     15 .Op Fl flags
     16 .Op Fl flag Op Ar value
     17 .Op Fl \-option\-name Ns Oo Oo Ns "=| " Oc Ns Ar value Oc
     18 .Pp
     19 All arguments must be options.
     20 .Pp
     21 .Sh DESCRIPTION
     22 .Nm
     23 will validate the file currently on the local system
     24 and if necessary, updates leap\-second definition file.
     25 .Pp
     26 Ordinarily, the file is found using the "leapfile" directive in
     27 .Xr ntp.conf 5 .
     28 However, an alternate location can be specified on the command line.
     29 .Pp
     30 If the file does not exist, is not valid, has expired, or is expiring soon,
     31 a new copy will be downloaded.  If the new copy validates, it is installed and
     32 NTP is (optionally) restarted.
     33 .Pp
     34 If the current file is acceptable, no download or restart occurs.
     35 .Pp
     36 -c can also be used to invoke another script to perform administrative
     37 functions, e.g. to copy the file to other local systems.
     38 .PP
     39 This can be run as a cron job.  As the file is rarely updated, and leap
     40 seconds are announced at least one month in advance (usually longer), it
     41 need not be run more frequently than about once every three weeks.
     42 .PP
     43 For cron\-friendly behavior, define CRONJOB=1 in the crontab.
     44 .PP
     45 This script depends on$REQUIREDCMDS
     46 .Sh "OPTIONS"
     47 .Bl -tag
     48 .It  Fl s Ar string , Fl \-source\-url Ns = Ns Ar string 
     49 The URL of the master copy of the leapseconds file.
     50 .sp
     51 Specify the URL of the master copy to download
     52 $LEAPSRC
     53 .It  Fl 4 , Fl \-ipv4 
     54 Use only IPv4 addresses for DNS name resolution.
     55 This option must not appear in combination with any of the following options:
     56 ipv6.
     57 .sp
     58         Force DNS resolution of following host names on the command line
     59         to the IPv4 namespace.
     60         _EndOfDoc_;
     61 };
     62 .sp
     63 flag = {
     64     name      = ipv6;
     65     flags\-cant = ipv4, prefer;
     66     value     = 6;
     67     descrip   = "Use only IPv6 addresses for DNS name resolution";
     68     doc = <<\-  _EndOfDoc_
     69         Force DNS resolution of following host names on the command line
     70         to the IPv6 namespace.
     71         _EndOfDoc_;
     72 };
     73 .sp
     74 flag = {
     75     name        = prefer;
     76     flags\-cant	= ipv4, ipv6;
     77     value	= p;
     78     arg\-type    = keyword;
     79     keyword	= 4, 6;
     80     descrip     = 'Prefer IPv4 or IPv6 (as specified) addresses, but use either';
     81     doc         = <<\-  _EndOfDoc_
     82 Prefer IPv4 or IPv6 (as specified) addresses, but use either.
     83 .It  Fl d Ar float , Fl \-destination Ns = Ns Ar float 
     84 Filename on the local system.
     85 .sp
     86 The name to use to store the leapfile on the local system.
     87 $LEAPFILE
     88 .It  Fl e Ar string , Fl \-expiration Ns = Ns Ar string 
     89 Refresh the leapfile this long before it expires.
     90 .sp
     91 Specify how long before expiration the file is to be refreshed
     92 Units are required, e.g. "\-e 60 days"  Note that larger values
     93 imply more frequent refreshes.
     94 "$PREFETCH"
     95 .It  Fl f Ar string , Fl \-ntp\-conf\-file Ns = Ns Ar string 
     96 Location of the ntp.conf file.
     97 .sp
     98 Specify location of ntp.conf (used to make sure leapfile directive is
     99 present and to default  leapfile)
    100 /etc/ntp.conf
    101 .It  Fl F , Fl \-force\-update 
    102 Force update of the leapfile.
    103 .sp
    104 Force update even if current file is OK and not close to expiring.
    105 .It  Fl \-dont\-wait 
    106 Don't wait for keystroke between plots.
    107 .sp
    108 .It Fl \&? , Fl \-help
    109 Display usage information and exit.
    110 .It Fl \&! , Fl \-more\-help
    111 Pass the extended usage information through a pager.
    112 .It Fl v Op Brq Ar v|c|n  Fl \-version Op Brq Ar v|c|n
    113 Output version of program and exit.  The default mode is `v', a simple
    114 version.  The `c' mode will print copyright information and `n' will
    115 print the full copyright notice.
    116 .El
    117 .Sh USAGE
    118 Usage stuff
    119 .Sh "EXIT STATUS"
    120 One of the following exit values will be returned:
    121 .Bl -tag
    122 .It 0 " (EXIT_SUCCESS)"
    123 Successful program execution.
    124 .It 1 " (EXIT_FAILURE)"
    125 The operation failed or the command syntax was not valid.
    126 .It 70 " (EX_SOFTWARE)"
    127 libopts had an internal operational error.  Please report
    128 it to autogen\-users (a] lists.sourceforge.net.  Thank you.
    129 .El
    130 .Sh AUTHORS
    131 .An "Timothe Litt"
    132 .Sh "NOTES"
    133 This manual page was \fIAutoGen\fP\-erated from the \fBupdate\-leap\fP
    134 option definitions.
    135