File: ntpleapfetch-body.adoc

package info (click to toggle)
ntpsec 1.2.0%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 10,044 kB
  • sloc: ansic: 60,737; python: 31,610; sh: 1,494; yacc: 1,291; makefile: 176; javascript: 138
file content (112 lines) | stat: -rw-r--r-- 3,105 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// This is the body of the manual page for ntpleapfetch.
// It's included in two places: once for the docs/ HTML
// tree, and once to make an individual man page.

== SYNOPSIS
[verse]
+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]

== DESCRIPTION

`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
_{ntpdconfman}_. 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.

== OPTIONS

+-4+::
  Use only IPv4 addresses for DNS name resolution. This option must not
  appear in combination with +-6+.

+-6+::
  Use only IPv6 addresses for DNS name resolution. This option must not
  appear in combination with +-4+.

+-c+::
  Command to restart ntpd after installing a new file. Without such a
  command, ntpd checks the file daily.

+-e+ 'expiry'::
  Refresh the leapfile this long before it expires.
+
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'::
  Location of the {ntpconf} file.
+
Specify location of {ntpconf}, which defaults to +{ntpconfpath}+.  It is read
to make sure the "leapfile" directive is present and to determine the default
path to the leapfile.

+-F+::
  Force update even if current file is OK and not close to expiring.

+-i+ 'interval'::
  Number of minutes between retries.

+-h+::
  Display inline help.

+-l+::
  Use syslog for output (Implied if CRONJOB is set).

+-L+::
  Don't use syslog for output

+-p+ {+4+|+6+}::
  Prefer IPv4 or IPv6 (as specified) addresses, but use either.

+-P+ 'logfacility'::
  Specify the syslog facility for logging.

+-q+::
  Only report errors to stdout.

+-r+ 'retries'::
  Number of retries.

+-s+ 'source-url'::
  The URL of the master copy of the leapseconds file.

+-t+ 'path'::
  Name of temporary file used in validation.

+-v+::
  Verbose output.

+-z+ 'path'::
  Specify path for utilities.

+-Z+::
  Use system path only.

+-V+, +--version+::
  Print the version string and exit.

'leapfile'::
  An alternate location to download the leapseconds file to.
// end