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