NTPLEAPFETCH(8) | NTPsec | NTPLEAPFETCH(8) |
ntpleapfetch - leap-seconds file manager/updater
ntpleapfetch
[-46] [-c command] [-e expiry] [-f config] [-F] [-h]
[-i interval] [-l] [L] [-p {4|6}] [-P logfacility] [-q]
[-r retries] [-s source-url] [-t path] [-v] [-z path]
[-Z] [leapfile] [-V | --version] [filename]
ntpleapfetch will validate the file currently on the local system and if necessary, update leap second definition file.
Ordinarily, the file is found using the "leapfile" directive in ntp.conf(5). However, an alternate location can be specified on the command line.
If the file does not exist, is not valid, has expired, or is expiring soon, a new copy will be downloaded. If the new copy validates, it is installed and NTP is (optionally) restarted.
If the current file is acceptable, no download or restart occurs.
-c can also be used to invoke another script to perform administrative functions, e.g. to copy the file to other local systems.
This can be run as a cron job. As the file is rarely updated, and leap seconds are announced at least one month in advance (usually longer), it need not be run more frequently than about once every three weeks.
For cron-friendly behavior, define CRONJOB=1 in the crontab.
-4
-6
-c
-e expiry
Specify how long before expiration the file is to be refreshed. Units are required, e.g. "-e 60 days". Note that larger values imply more frequent refreshes.
-f config
Specify location of ntp.conf, which defaults to /etc/ntp.conf. It is read to make sure the "leapfile" directive is present and to determine the default path to the leapfile.
-F
-i interval
-h
-l
-L
-p {4|6}
-P logfacility
-q
-r retries
-s source-url
-t path
-v
-z path
-Z
-V, --version
leapfile
One of the following exit values will be returned:
0 (EXIT_SUCCESS)
1 (EXIT_FAILURE)
2
Timothe Litt
2021-06-17 | NTPsec |