Date: Fri, 30 Sep 2005 14:41:25 +0100 From: Alex Zbyslaw <xfb52@dial.pipex.com> To: John Marshall <John.Marshall@riverwillow.com.au> Cc: freebsd-rc@freebsd.org Subject: Re: Add ntpdate_hosts to rc.conf Message-ID: <433D4085.3080904@dial.pipex.com> In-Reply-To: <9F7B653A50CF3D45A92C05401046239B059A76@rwsrv06.rw2.riverwillow.net.au> References: <9F7B653A50CF3D45A92C05401046239B059A76@rwsrv06.rw2.riverwillow.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?433D4085.3080904>