> Date: Wed, 2 May 2007 20:02:54 +0200
> From: Henrik Brix Andersen <[EMAIL PROTECTED]>
> Sender: [EMAIL PROTECTED]
> 
> On Wed, May 02, 2007 at 10:23:09AM -0700, Doug Barton wrote:
> [snip /etc/ntp.conf configuration file instructions]
> >  Then make sure you have the following in /etc/rc.conf:
> > 
> >  ntpdate_enable="yes"
> >  ntpdate_flags="-sb 1.2.3.4"
> >  ntpd_enable="yes"
> 
> Just a side note - according to the ntpdate(8) man page, ntpdate is
> deprecated and will eventually be removed from the distribution since
> the same functionality is available in ntpd(8).
> 
> Thus, all you need to put in /etc/rc.conf is this:
> 
> ntpd_enable="YES"
> ntpd_sync_on_start="YES"
> 
> You still need a properly configured /etc/ntp.conf file.

A few more comments:

If ntpd is started with the '-g' flag, it will initially step the time
so you get your clock set as you would have with ntpdate. This is set in
/etc/rc.conf as 'ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift -g". 

You also should add 'iburst' to each server line in ntp.conf. This will
cause several queries to be made to each server at startup so that
there will not be a long delay before the clock is synchronized. Without
the 'iburst', your time won't be set for about 4or 5 minutes.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: [EMAIL PROTECTED]                       Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751

Attachment: pgpYUsl4CHDpm.pgp
Description: PGP signature

Reply via email to