]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r289421, r293037, r294773, and r294884.
authorcy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 10 Feb 2016 07:16:17 +0000 (07:16 +0000)
committercy <cy@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 10 Feb 2016 07:16:17 +0000 (07:16 +0000)
commitaac0a2f25969d557ada59a158f7646e1bb8a7270
tree73ccc7af60f9fedfd02474a7816821a707c7106e
parent7a129fe167b1131700de8fc95f56bbb15381206c
MFC r289421, r293037, r294773, and r294884.

ntp leap-leapseconds support.

r289421:

Add default leap-seconds file. This should help ntp networks get the
leap second date correct

Updates to the file can be obtained from ftp://time.nist.gov/pub/ or
ftp://tycho.usno.navy.mil/pub/ntp/.

r293037:

Update leap-seconds to latest. This will satisfy the ntpd leap-second
version check.

r294773:

Add support for automatic leap-second file updates.

The working copy of leapfile resides in /var/dbntpd.leap-seconds.list.
/etc/ntp/leap-seconds (periodically updated from ftp://time.nist.gov/pub/
or ftp://tycho.usno.navy.mil/pub/ntp/) contains the master copy should
automatic leapfile updates be disabled (default).

Automatic leapfile updates are fetched from $ntp_leapfile_sources,
defaulting to https://www.ietf.org/timezones/data/leap-seconds.list,
within $ntp_leapfile_expiry_days (default 30 days) from leap-seconds
file expiry. Automatic updates can be enabled by setting
$daily_ntpd_leapfile_enable="YES" in periodic.conf. To avoid congesting
the ntp leapfile source the automatic update randomized by default but
can be disabled through daily_ntpd_avoid_congestion="NO" in
periodic.conf.

r294884:

Allow specification of fetch options for ntp leap-seconds fetch.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@295461 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/Makefile
etc/defaults/periodic.conf
etc/defaults/rc.conf
etc/mtree/BSD.var.dist
etc/ntp.conf
etc/ntp/Makefile [new file with mode: 0644]
etc/ntp/leap-seconds [new file with mode: 0644]
etc/periodic/daily/480.leapfile-ntpd [new file with mode: 0755]
etc/periodic/daily/Makefile
etc/rc.d/ntpd