From owner-freebsd-net@FreeBSD.ORG Fri Jun 5 19:19:02 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A967A106564A for ; Fri, 5 Jun 2009 19:19:02 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5CD3A8FC13 for ; Fri, 5 Jun 2009 19:19:02 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 0773719E081; Fri, 5 Jun 2009 21:18:59 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 99C3319E080; Fri, 5 Jun 2009 21:18:55 +0200 (CEST) Message-ID: <4A296FA0.2050601@quip.cz> Date: Fri, 05 Jun 2009 21:18:56 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Bruce Evans References: <20090605124428.GA85576@mavetju.org> <20090606015013.Q15911@delplex.bde.org> In-Reply-To: <20090606015013.Q15911@delplex.bde.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Ollivier Robert , Edwin Groothuis , "Sean C. Farley" , freebsd-net@freebsd.org Subject: Re: NTP - default /etc/ntp.conf X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 19:19:03 -0000 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