Date: Thu, 23 Sep 2004 13:37:24 +0900 From: Rob <spamrefuse@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: Ntpd assistance Message-ID: <41525304.3000700@yahoo.com> In-Reply-To: <415197F9.3080901@verizon.net> References: <415197F9.3080901@verizon.net>
next in thread | previous in thread | raw e-mail | index | archive | help
alden.pierre wrote: > /etc/rc.conf contains the following: > > ntpdate_enable="YES" > ntpdate_flags="timex.cs.columbia.edu" > xntpd_enable="YES" # Run ntpd Network Time Protocol > > /etc/ntpd.conf contains the following: > > driftfile /etc/ntp/drift > server 65.211.109.1 > server 65.211.109.11 > server 209.51.161.238 > server 128.59.59.177 Use /etc/ntp.conf (NOT ntpd.conf). I would configure this system as follows: /etc/rc.conf: ntpdate_enable="YES" ntpdate_flags="-b 65.211.109.1 65.211.109.11 209.51.161.238 128.59.59.177" xntpd_enable="YES" /etc/ntp.conf: #-------------------------- # prohibit general access to this service #-------------------------- restrict default ignore #-------------------------- # localhost has full access to the server #-------------------------- restrict 127.0.0.1 #-------------------------- # servers to query #-------------------------- server 65.211.109.1 restrict 65.211.109.1 server 65.211.109.11 restrict 65.211.109.11 server 209.51.161.238 restrict 209.51.161.238 server 128.59.59.177 restrict 128.59.59.177 #-------------------------- # files to use #-------------------------- driftfile /var/db/ntp.drift ------------------------------------------------- The idea is, that, at boot up, you force instant time synchronization with ntpdate, using the list of servers in ntpdate_flags="-b ....". (check the man page of ntpdate and the -b flag). Then you allow ntpd to start (xntpd_enable = "YES"), that will keep the time in sync with the servers in /etc/ntp.conf. As a regular user, verify nptd's sync behaviour with: ntpq -np I hope that helps. Rob.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41525304.3000700>