1281348Scy.de1 NOP 2281348Scy. it 1 an-trap 3281348Scy. if \\n[.$] \,\\$*\/ 4281348Scy.. 5281348Scy.ie t \ 6281348Scy.ds B-Font [CB] 7281348Scy.ds I-Font [CI] 8281348Scy.ds R-Font [CR] 9281348Scy.el \ 10281348Scy.ds B-Font B 11281348Scy.ds I-Font I 12281348Scy.ds R-Font R 13338531Sdelphij.TH update-leap 1update-leapman "14 Aug 2018" "ntp (4.2.8p12)" "User Commands" 14281348Scy.\" 15338531Sdelphij.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-4Iayif/ag-fJaGhf) 16281348Scy.\" 17338531Sdelphij.\" It has been AutoGen-ed August 14, 2018 at 08:09:29 AM by AutoGen 5.18.5 18281348Scy.\" From the definitions update-leap-opts.def 19281348Scy.\" and the template file agman-cmd.tpl 20281348Scy.SH NAME 21281348Scy\f\*[B-Font]update-leap\fP 22281348Scy\- leap-seconds file manager/updater 23281348Scy.SH SYNOPSIS 24281348Scy\f\*[B-Font]update-leap\fP 25281348Scy.\" Mixture of short (flag) options and long options 26281348Scy[\f\*[B-Font]\-flags\f[]] 27281348Scy[\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]] 28281348Scy[\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]] 29281348Scy.sp \n(Ppu 30281348Scy.ne 2 31281348Scy 32281348ScyAll arguments must be options. 33281348Scy.sp \n(Ppu 34281348Scy.ne 2 35281348Scy 36281348Scy.SH DESCRIPTION 37281348Scy\f\*[B-Font]update-leap\fP 38281348Scywill validate the file currently on the local system 39281348Scyand if necessary, updates leap-second definition file. 40281348Scy.sp \n(Ppu 41281348Scy.ne 2 42281348Scy 43281348ScyOrdinarily, the file is found using the "leapfile" directive in 44285612Sdelphij\fCntp.conf\f[]\fR(5)\f[]. 45281348ScyHowever, an alternate location can be specified on the command line. 46281348Scy.sp \n(Ppu 47281348Scy.ne 2 48281348Scy 49281348ScyIf the file does not exist, is not valid, has expired, or is expiring soon, 50281348Scya new copy will be downloaded. If the new copy validates, it is installed and 51281348ScyNTP is (optionally) restarted. 52281348Scy.sp \n(Ppu 53281348Scy.ne 2 54281348Scy 55281348ScyIf the current file is acceptable, no download or restart occurs. 56281348Scy.sp \n(Ppu 57281348Scy.ne 2 58281348Scy 59281348Scy-c can also be used to invoke another script to perform administrative 60281348Scyfunctions, e.g. to copy the file to other local systems. 61281348Scy.PP 62281348ScyThis can be run as a cron job. As the file is rarely updated, and leap 63281348Scyseconds are announced at least one month in advance (usually longer), it 64281348Scyneed not be run more frequently than about once every three weeks. 65281348Scy.PP 66281348ScyFor cron-friendly behavior, define CRONJOB=1 in the crontab. 67281348Scy.PP 68281348ScyThis script depends on$REQUIREDCMDS 69281348Scy.SH "OPTIONS" 70281348Scy.TP 71281348Scy.NOP \f\*[B-Font]\-s\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-source\-url\f[]=\f\*[I-Font]string\f[] 72281348ScyThe URL of the master copy of the leapseconds file. 73281348Scy.sp 74281348ScySpecify the URL of the master copy to download 75281348Scy$LEAPSRC 76281348Scy.TP 77281348Scy.NOP \f\*[B-Font]\-4\f[], \f\*[B-Font]\-\-ipv4\f[] 78281348ScyUse only IPv4 addresses for DNS name resolution. 79281348ScyThis option must not appear in combination with any of the following options: 80281348Scyipv6. 81281348Scy.sp 82281348Scy Force DNS resolution of following host names on the command line 83281348Scy to the IPv4 namespace. 84281348Scy _EndOfDoc_; 85281348Scy}; 86281348Scy.sp 87281348Scyflag = { 88281348Scy name = ipv6; 89281348Scy flags-cant = ipv4, prefer; 90281348Scy value = 6; 91281348Scy descrip = "Use only IPv6 addresses for DNS name resolution"; 92281348Scy doc = <<- _EndOfDoc_ 93281348Scy Force DNS resolution of following host names on the command line 94281348Scy to the IPv6 namespace. 95281348Scy _EndOfDoc_; 96281348Scy}; 97281348Scy.sp 98281348Scyflag = { 99281348Scy name = prefer; 100281348Scy flags-cant = ipv4, ipv6; 101281348Scy value = p; 102281348Scy arg-type = keyword; 103281348Scy keyword = 4, 6; 104281348Scy descrip = 'Prefer IPv4 or IPv6 (as specified) addresses, but use either'; 105281348Scy doc = <<- _EndOfDoc_ 106281348ScyPrefer IPv4 or IPv6 (as specified) addresses, but use either. 107281348Scy.TP 108281348Scy.NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]float\f[], \f\*[B-Font]\-\-destination\f[]=\f\*[I-Font]float\f[] 109281348ScyFilename on the local system. 110281348Scy.sp 111281348ScyThe name to use to store the leapfile on the local system. 112281348Scy$LEAPFILE 113281348Scy.TP 114281348Scy.NOP \f\*[B-Font]\-e\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-expiration\f[]=\f\*[I-Font]string\f[] 115281348ScyRefresh the leapfile this long before it expires. 116281348Scy.sp 117281348ScySpecify how long before expiration the file is to be refreshed 118281348ScyUnits are required, e.g. "-e 60 days" Note that larger values 119281348Scyimply more frequent refreshes. 120281348Scy"$PREFETCH" 121281348Scy.TP 122281348Scy.NOP \f\*[B-Font]\-f\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-ntp\-conf\-file\f[]=\f\*[I-Font]string\f[] 123281348ScyLocation of the ntp.conf file. 124281348Scy.sp 125281348ScySpecify location of ntp.conf (used to make sure leapfile directive is 126281348Scypresent and to default leapfile) 127281348Scy/etc/ntp.conf 128281348Scy.TP 129281348Scy.NOP \f\*[B-Font]\-F\f[], \f\*[B-Font]\-\-force\-update\f[] 130281348ScyForce update of the leapfile. 131281348Scy.sp 132281348ScyForce update even if current file is OK and not close to expiring. 133281348Scy.TP 134281348Scy.NOP \f\*[B-Font]\-\-dont\-wait\f[] 135281348ScyDon't wait for keystroke between plots. 136281348Scy.sp 137281348Scy.TP 138281348Scy.NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[] 139281348ScyDisplay usage information and exit. 140281348Scy.TP 141281348Scy.NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[] 142281348ScyPass the extended usage information through a pager. 143281348Scy.TP 144281348Scy.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[]}]}] 145281348ScyOutput version of program and exit. The default mode is `v', a simple 146281348Scyversion. The `c' mode will print copyright information and `n' will 147281348Scyprint the full copyright notice. 148281348Scy.PP 149281348Scy.SH USAGE 150281348ScyUsage stuff 151281348Scy.SH "EXIT STATUS" 152281348ScyOne of the following exit values will be returned: 153281348Scy.TP 154281348Scy.NOP 0 " (EXIT_SUCCESS)" 155281348ScySuccessful program execution. 156281348Scy.TP 157281348Scy.NOP 1 " (EXIT_FAILURE)" 158281348ScyThe operation failed or the command syntax was not valid. 159281348Scy.TP 160281348Scy.NOP 70 " (EX_SOFTWARE)" 161281348Scylibopts had an internal operational error. Please report 162281348Scyit to autogen-users@lists.sourceforge.net. Thank you. 163281348Scy.PP 164281348Scy.SH AUTHORS 165281348Scy.NOP "Timothe Litt" 166281348Scy.br 167281348Scy.SH "NOTES" 168281348ScyThis manual page was \fIAutoGen\fP-erated from the \fBupdate-leap\fP 169281348Scyoption definitions. 170