Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2008 11:02:52 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Jim Stapleton <stapleton.41@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ntpd - I'm sure I'm setting it up wrong, but I can't figure out how.
Message-ID:  <FD7CA713-CF49-4DD5-9B54-951CBE372584@mac.com>
In-Reply-To: <80f4f2b20805261002x3a875b36s88dc1ea4b38bca87@mail.gmail.com>
References:  <80f4f2b20805261002x3a875b36s88dc1ea4b38bca87@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 26, 2008, at 10:02 AM, Jim Stapleton wrote:
> I'm trying to run ntpd to auto-update my computer's time (since I'm
> not supposed to use ntpdate).
>
> /etc/ntp.conf (I've tried without the restrict line):
> ========================================
> server sushi.lyon.edu
> restrict default ignore
> driftfile /var/db/ntp.drift
> ========================================

Your configuration is blocking all NTP traffic and commands, even from  
localhost.  See:

   http://support.ntp.org/bin/view/Support/AccessRestrictions#Section_6.5.1.2.1 
.

You also want to configure at least 4 timeservers if you want to get  
reliable "falseticker" detection; see:

   http://www.pool.ntp.org/use.html

> I have tried this command (with and without the -g), with no success.
> If I don't have an /etc/ntp.conf, it complains, and it stops
> complaining when I put /etc/ntp.conf back where it belongs:
> $ sudo  /usr/sbin/ntpd -q -g -f /var/db/ntpd.drift -l /var/log/ 
> ntpd.log

The system knows how to do this:

   echo 'ntpd_enable="YES"' >> /etc/rc.conf
   /etc/rc.d/ntpd start                       # or restart, perhaps

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FD7CA713-CF49-4DD5-9B54-951CBE372584>