13 .TH update-leap 1update-leapman "20 Jan 2016" "ntp (4.2.8p6)" "User Commands"
15 .\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-iOaqCL/ag-uOayBL)
17 .\" It has been AutoGen-ed January 20, 2016 at 04:10:20 AM by AutoGen 5.18.5
18 .\" From the definitions update-leap-opts.def
19 .\" and the template file agman-cmd.tpl
21 \f\*[B-Font]update-leap\fP
22 \- leap-seconds file manager/updater
24 \f\*[B-Font]update-leap\fP
25 .\" Mixture of short (flag) options and long options
26 [\f\*[B-Font]\-flags\f[]]
27 [\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
28 [\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
32 All arguments must be options.
37 \f\*[B-Font]update-leap\fP
38 will validate the file currently on the local system
39 and if necessary, updates leap-second definition file.
43 Ordinarily, the file is found using the "leapfile" directive in
44 \fCntp.conf\f[]\fR(5)\f[].
45 However, an alternate location can be specified on the command line.
49 If the file does not exist, is not valid, has expired, or is expiring soon,
50 a new copy will be downloaded. If the new copy validates, it is installed and
51 NTP is (optionally) restarted.
55 If the current file is acceptable, no download or restart occurs.
59 -c can also be used to invoke another script to perform administrative
60 functions, e.g. to copy the file to other local systems.
62 This can be run as a cron job. As the file is rarely updated, and leap
63 seconds are announced at least one month in advance (usually longer), it
64 need not be run more frequently than about once every three weeks.
66 For cron-friendly behavior, define CRONJOB=1 in the crontab.
68 This script depends on$REQUIREDCMDS
71 .NOP \f\*[B-Font]\-s\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-source\-url\f[]=\f\*[I-Font]string\f[]
72 The URL of the master copy of the leapseconds file.
74 Specify the URL of the master copy to download
77 .NOP \f\*[B-Font]\-4\f[], \f\*[B-Font]\-\-ipv4\f[]
78 Use only IPv4 addresses for DNS name resolution.
79 This option must not appear in combination with any of the following options:
82 Force DNS resolution of following host names on the command line
83 to the IPv4 namespace.
89 flags-cant = ipv4, prefer;
91 descrip = "Use only IPv6 addresses for DNS name resolution";
93 Force DNS resolution of following host names on the command line
94 to the IPv6 namespace.
100 flags-cant = ipv4, ipv6;
104 descrip = 'Prefer IPv4 or IPv6 (as specified) addresses, but use either';
106 Prefer IPv4 or IPv6 (as specified) addresses, but use either.
108 .NOP \f\*[B-Font]\-d\f[] \f\*[I-Font]float\f[], \f\*[B-Font]\-\-destination\f[]=\f\*[I-Font]float\f[]
109 Filename on the local system.
111 The name to use to store the leapfile on the local system.
114 .NOP \f\*[B-Font]\-e\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-expiration\f[]=\f\*[I-Font]string\f[]
115 Refresh the leapfile this long before it expires.
117 Specify how long before expiration the file is to be refreshed
118 Units are required, e.g. "-e 60 days" Note that larger values
119 imply more frequent refreshes.
122 .NOP \f\*[B-Font]\-f\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-ntp\-conf\-file\f[]=\f\*[I-Font]string\f[]
123 Location of the ntp.conf file.
125 Specify location of ntp.conf (used to make sure leapfile directive is
126 present and to default leapfile)
129 .NOP \f\*[B-Font]\-F\f[], \f\*[B-Font]\-\-force\-update\f[]
130 Force update of the leapfile.
132 Force update even if current file is OK and not close to expiring.
134 .NOP \f\*[B-Font]\-\-dont\-wait\f[]
135 Don't wait for keystroke between plots.
138 .NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[]
139 Display usage information and exit.
141 .NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
142 Pass the extended usage information through a pager.
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[]}]}]
145 Output version of program and exit. The default mode is `v', a simple
146 version. The `c' mode will print copyright information and `n' will
147 print the full copyright notice.
152 One of the following exit values will be returned:
154 .NOP 0 " (EXIT_SUCCESS)"
155 Successful program execution.
157 .NOP 1 " (EXIT_FAILURE)"
158 The operation failed or the command syntax was not valid.
160 .NOP 70 " (EX_SOFTWARE)"
161 libopts had an internal operational error. Please report
162 it to autogen-users@lists.sourceforge.net. Thank you.
168 This manual page was \fIAutoGen\fP-erated from the \fBupdate-leap\fP