Date: Fri, 05 Jun 2009 21:18:56 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> To: Bruce Evans <brde@optusnet.com.au> Cc: Ollivier Robert <roberto@freebsd.org>, Edwin Groothuis <edwin@freebsd.org>, "Sean C. Farley" <scf@freebsd.org>, freebsd-net@freebsd.org Subject: Re: NTP - default /etc/ntp.conf Message-ID: <4A296FA0.2050601@quip.cz> In-Reply-To: <20090606015013.Q15911@delplex.bde.org> References: <20090605124428.GA85576@mavetju.org> <alpine.BSF.2.00.0906050846160.6209@thor.farley.org> <20090606015013.Q15911@delplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A296FA0.2050601>