update-leap.man.in revision 338531
1205147Sedwin.de1 NOP 2205147Sedwin. it 1 an-trap 3205147Sedwin. if \\n[.$] \,\\$*\/ 4205147Sedwin.. 5205147Sedwin.ie t \ 6205147Sedwin.ds B-Font [CB] 7205147Sedwin.ds I-Font [CI] 8205147Sedwin.ds R-Font [CR] 9205147Sedwin.el \ 10205147Sedwin.ds B-Font B 11205147Sedwin.ds I-Font I 12205147Sedwin.ds R-Font R 13205147Sedwin.TH update-leap 1update-leapman "14 Aug 2018" "ntp (4.2.8p12)" "User Commands" 14205147Sedwin.\" 15205147Sedwin.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-4Iayif/ag-fJaGhf) 16205147Sedwin.\" 17205147Sedwin.\" It has been AutoGen-ed August 14, 2018 at 08:09:29 AM by AutoGen 5.18.5 18205147Sedwin.\" From the definitions update-leap-opts.def 19205147Sedwin.\" and the template file agman-cmd.tpl 20205147Sedwin.SH NAME 21205147Sedwin\f\*[B-Font]update-leap\fP 22205147Sedwin\- leap-seconds file manager/updater 23205147Sedwin.SH SYNOPSIS 24205147Sedwin\f\*[B-Font]update-leap\fP 25205147Sedwin.\" Mixture of short (flag) options and long options 26205147Sedwin[\f\*[B-Font]\-flags\f[]] 27205147Sedwin[\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]] 28205147Sedwin[\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]] 29205147Sedwin.sp \n(Ppu 30205147Sedwin.ne 2 31205147Sedwin 32205147SedwinAll arguments must be options. 33205147Sedwin.sp \n(Ppu 34205147Sedwin.ne 2 35205147Sedwin 36205147Sedwin.SH DESCRIPTION 37205147Sedwin\f\*[B-Font]update-leap\fP 38205147Sedwinwill validate the file currently on the local system 39205147Sedwinand if necessary, updates leap-second definition file. 40205147Sedwin.sp \n(Ppu 41205147Sedwin.ne 2 42205147Sedwin 43205147SedwinOrdinarily, the file is found using the "leapfile" directive in 44205147Sedwin\fCntp.conf\f[]\fR(5)\f[]. 45205147SedwinHowever, an alternate location can be specified on the command line. 46205147Sedwin.sp \n(Ppu 47205147Sedwin.ne 2 48205147Sedwin 49205147SedwinIf the file does not exist, is not valid, has expired, or is expiring soon, 50205147Sedwina new copy will be downloaded. If the new copy validates, it is installed and 51205147SedwinNTP is (optionally) restarted. 52205147Sedwin.sp \n(Ppu 53205147Sedwin.ne 2 54205147Sedwin 55If the current file is acceptable, no download or restart occurs. 56.sp \n(Ppu 57.ne 2 58 59-c can also be used to invoke another script to perform administrative 60functions, e.g. to copy the file to other local systems. 61.PP 62This can be run as a cron job. As the file is rarely updated, and leap 63seconds are announced at least one month in advance (usually longer), it 64need not be run more frequently than about once every three weeks. 65.PP 66For cron-friendly behavior, define CRONJOB=1 in the crontab. 67.PP 68This script depends on$REQUIREDCMDS 69.SH "OPTIONS" 70.TP 71.NOP \f\*[B-Font]\-s\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-source\-url\f[]=\f\*[I-Font]string\f[] 72The URL of the master copy of the leapseconds file. 73.sp 74Specify the URL of the master copy to download 75$LEAPSRC 76.TP 77.NOP \f\*[B-Font]\-4\f[], \f\*[B-Font]\-\-ipv4\f[] 78Use only IPv4 addresses for DNS name resolution. 79This option must not appear in combination with any of the following options: 80ipv6. 81.sp 82 Force DNS resolution of following host names on the command line 83 to the IPv4 namespace. 84 _EndOfDoc_; 85}; 86.sp 87flag = { 88 name = ipv6; 89 flags-cant = ipv4, prefer; 90 value = 6; 91 descrip = "Use only IPv6 addresses for DNS name resolution"; 92 doc = <<- _EndOfDoc_ 93 Force DNS resolution of following host names on the command line 94 to the IPv6 namespace. 95 _EndOfDoc_; 96}; 97.sp 98flag = { 99 name = prefer; 100 flags-cant = ipv4, ipv6; 101 value = p; 102 arg-type = keyword; 103 keyword = 4, 6; 104 descrip = 'Prefer IPv4 or IPv6 (as specified) addresses, but use either'; 105 doc = <<- _EndOfDoc_ 106Prefer IPv4 or IPv6 (as specified) addresses, but use either. 107.TP 108.NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]float\f[], \f\*[B-Font]\-\-destination\f[]=\f\*[I-Font]float\f[] 109Filename on the local system. 110.sp 111The name to use to store the leapfile on the local system. 112$LEAPFILE 113.TP 114.NOP \f\*[B-Font]\-e\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-expiration\f[]=\f\*[I-Font]string\f[] 115Refresh the leapfile this long before it expires. 116.sp 117Specify how long before expiration the file is to be refreshed 118Units are required, e.g. "-e 60 days" Note that larger values 119imply more frequent refreshes. 120"$PREFETCH" 121.TP 122.NOP \f\*[B-Font]\-f\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-ntp\-conf\-file\f[]=\f\*[I-Font]string\f[] 123Location of the ntp.conf file. 124.sp 125Specify location of ntp.conf (used to make sure leapfile directive is 126present and to default leapfile) 127/etc/ntp.conf 128.TP 129.NOP \f\*[B-Font]\-F\f[], \f\*[B-Font]\-\-force\-update\f[] 130Force update of the leapfile. 131.sp 132Force update even if current file is OK and not close to expiring. 133.TP 134.NOP \f\*[B-Font]\-\-dont\-wait\f[] 135Don't wait for keystroke between plots. 136.sp 137.TP 138.NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[] 139Display usage information and exit. 140.TP 141.NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[] 142Pass the extended usage information through a pager. 143.TP 144.NOP \f\*[B-Font]\-v\f[] [{\f\*[I-Font]v|c|n\f[] \f\*[B-Font]\-\-version\f[] [{\f\*[I-Font]v|c|n\f[]}]}] 145Output version of program and exit. The default mode is `v', a simple 146version. The `c' mode will print copyright information and `n' will 147print the full copyright notice. 148.PP 149.SH USAGE 150Usage stuff 151.SH "EXIT STATUS" 152One of the following exit values will be returned: 153.TP 154.NOP 0 " (EXIT_SUCCESS)" 155Successful program execution. 156.TP 157.NOP 1 " (EXIT_FAILURE)" 158The operation failed or the command syntax was not valid. 159.TP 160.NOP 70 " (EX_SOFTWARE)" 161libopts had an internal operational error. Please report 162it to autogen-users@lists.sourceforge.net. Thank you. 163.PP 164.SH AUTHORS 165.NOP "Timothe Litt" 166.br 167.SH "NOTES" 168This manual page was \fIAutoGen\fP-erated from the \fBupdate-leap\fP 169option definitions. 170