NTP - default /etc/ntp.conf

Miroslav Lachman 000.fbsd at quip.cz
Fri Jun 5 19:19:03 UTC 2009


Bruce Evans wrote:
> On Fri, 5 Jun 2009, Sean C. Farley wrote:
> 
>> On Fri, 5 Jun 2009, Edwin Groothuis wrote:
>>
>>> Index: etc/ntp.conf
>>> ===================================================================
>>> --- etc/ntp.conf    (revision 0)
>>> +++ etc/ntp.conf    (revision 0)
>>> @@ -0,0 +1,28 @@
>>> +#
>>> +# $FreeBSD$
>>> +#
>>> +# Default NTP servers for the FreeBSD operating system.
>>> +#
>>> +# Don't forget to enable ntpd in /etc/rc.conf with:
>>> +# ntpd_enable="YES"
>>> +#
>>> +
>>> +driftfile /var/db/ntpd.drift
> 
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
>>> Index: etc/Makefile
>>> ===================================================================
>>> --- etc/Makefile    (revision 193485)
>>> +++ etc/Makefile    (working copy)
>>> @@ -14,7 +14,7 @@
>>>     hosts hosts.allow hosts.equiv \
>>>     inetd.conf libalias.conf login.access login.conf mac.conf motd \
>>>     netconfig network.subr networks newsyslog.conf nsswitch.conf \
>>> -    phones profile protocols \
>>> +    ntpd.conf phones profile protocols \
>>
>>
>> ntpd.conf or ntp.conf?
> 
> 
> Similarly, the drift file is named ntp.drift except in poorly configured
> FreeBSD installations.  ntp sources in contrib have 80 lines matching
> ntp\.drift and 2 lines matching ntpd.drift.  FreeBSD should only change
> the directory containing the drift file from /etc to /var/db or 
> /var/db/ntp,
> not the file name.

Also note that /var/db/ntpd.drift is specified as flags in 
defaults/rc.conf (I don't know if it is good or bad thing :])

# grep drift /etc/defaults/rc.conf
ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift"

Miroslav Lachman


More information about the freebsd-net mailing list