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