From owner-freebsd-rc@FreeBSD.ORG Fri Sep 30 13:41:28 2005 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B319416A41F for ; Fri, 30 Sep 2005 13:41:28 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D9FB43D48 for ; Fri, 30 Sep 2005 13:41:27 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [82.41.253.249] ([82.41.253.249]) by smtp-out2.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Fri, 30 Sep 2005 14:42:15 +0100 Message-ID: <433D4085.3080904@dial.pipex.com> Date: Fri, 30 Sep 2005 14:41:25 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.11) Gecko/20050917 X-Accept-Language: en-us, pl MIME-Version: 1.0 To: John Marshall References: <9F7B653A50CF3D45A92C05401046239B059A76@rwsrv06.rw2.riverwillow.net.au> In-Reply-To: <9F7B653A50CF3D45A92C05401046239B059A76@rwsrv06.rw2.riverwillow.net.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Sep 2005 13:42:15.0477 (UTC) FILETIME=[C4BADE50:01C5C5C4] Cc: freebsd-rc@freebsd.org Subject: Re: Add ntpdate_hosts to rc.conf X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2005 13:41:28 -0000 John Marshall wrote: >>Is there a reason you are using ntpdate rather than ntpd? ntpdate is >>supposedly deprecated and ntpd can do what ntpdate does: >> >> >> >Perhaps a better question, along the same lines, would be, Why does the >FreeBSD RC system use ntpdate? > >If the idea is to disappear the ntpdate phase from startup, then let's >ditch it and add the -g flag as default for ntpd_flags. If ntpdate is >staying, for the time being, then it can't hurt to add a missing >defaults variable, can it? > > But ntpdate isn't on by default (not on my 5.4-RELEASE system, anyway). From defaults/rc.conf > ntpdate_enable="NO" # Run ntpdate to sync time on boot (or NO). I'm sure you're right about the variable being missing, but you are still left with the choice of using ntpdate or ntpd. If you choose to use ntpd, your problem goes away. And a second question for you: your problem arises because you apparently have an ntp.conf and then still run ntpdate. Since ntp.conf isn't part of the default install, why do you have it, and with servers defined, if you are running ntpdate? My own bet would be that the whole "parse hosts out of ntp.conf" came from an era before ntpd had the relevant flags. Now that it does, you can disable ntpdate and just run ntpd with the flags you need. --Alex