]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311103, r311907:
authorian <ian@FreeBSD.org>
Thu, 2 Mar 2017 01:23:17 +0000 (01:23 +0000)
committerian <ian@FreeBSD.org>
Thu, 2 Mar 2017 01:23:17 +0000 (01:23 +0000)
commit31d34b0baaa2d0ae53986e48afaba51fbcc3b486
treedc6e2151af7d09712b41c2cc913a078048491cd2
parentacd168923c104fa26f6d48db142fa778b5cbc7b1
MFC r311103, r311907:

  Update ntp.conf to use the ntpd pool feature.

  Our previous ntp.conf file configured 3 servers from freebsd.pool.ntp.org
  using 3 separate 'server' config lines.  That is now replaced with a single
  'pool' line which causes ntpd to add multiple servers from the pool.

  More than just making the config smaller, the pool feature in ntpd has one
  major advantage over configuring 3 separate servers from a pool: if a server
  that was added using a 'pool' statement provides bad time (initially or at
  some later date), ntpd automatically discards it and configures a new
  different server from the pool without needing to be restarted.

  These changes also add a 'tos' line to control how many pool servers get
  added, a 'restrict source' line that is required to allow ntpd to add new
  peers from the pool, and it deletes a 'restrict 127.127.1.0' line that does
  nothing and should never have been there (127.127.1.0 is not a valid IP
  address, it's a refclock identifier).

  Add "pool" to the keywords that rc.d/ntpdate examines to
  find a server address in ntp.conf.
etc/ntp.conf
etc/rc.d/ntpdate