From owner-freebsd-questions@FreeBSD.ORG Mon Oct 1 01:36:52 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F14B16A41A for ; Mon, 1 Oct 2007 01:36:52 +0000 (UTC) (envelope-from mlt01+O3=902f5175@mlists.homeunix.com) Received: from turtle-out.mxes.net (turtle-out.mxes.net [216.86.168.191]) by mx1.freebsd.org (Postfix) with ESMTP id 34BED13C45D for ; Mon, 1 Oct 2007 01:36:52 +0000 (UTC) (envelope-from mlt01+O3=902f5175@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by turtle-in.mxes.net (Postfix) with ESMTP id 92F611051B for ; Sun, 30 Sep 2007 21:13:48 -0400 (EDT) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 4C96C51944 for ; Sun, 30 Sep 2007 21:13:44 -0400 (EDT) Date: Mon, 1 Oct 2007 02:13:41 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20071001021341.5719168b@gumby.homeunix.com.> In-Reply-To: <6852662bd22e8de7aa12336ea1404a67@prodigy.net> References: <5e433b6210a52ae0220ae0a20d0353e1@prodigy.net> <1191124332.5997.21.camel@new-host> <46FF54E5.4020502@cran.org.uk> <6852662bd22e8de7aa12336ea1404a67@prodigy.net> X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: using the date command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Oct 2007 01:36:52 -0000 On Sun, 30 Sep 2007 16:17:30 -0700 jekillen wrote: > > On Sep 30, 2007, at 12:48 AM, Bruce Cran wrote: > > ntpdate is deprecated, you should use "ntpd -q" instead if you want > > ntpd to set the time once then exit. From ntpdate(8): > > > > Note: The functionality of this program is now available in the > > ntpd(8) program. See the -q command line option in the ntpd(8) > > page. After a > > suitable period of mourning, the ntpdate utility is to be > > retired from > > this distribution. > > > > Also, ntpd wil refuse to update the time if the delta is more than > > 1000s by default, but you can use the -g option to override this. > > To set the date to within a reasonable delta, use something like > > "date 200709282027". If you want to set the time more accurately > > using NTP, edit /etc/ntp.conf and add "server pool.ntp.org" to it. > > Save it then run "ntpd -q". And if you then add ntpd_enable=YES ntpdate_enable=YES to rc.conf, it will all work automatically thereafter. ntpdate will run at boot-time followed by ntpd. The removal of ntpdate is something I'll believe in when it happens. ntpd -q is a superior drop-in replace for ntpdate when it's being run from cron. OTOH if you run ntpd -q in place of ntpdate at boot (before starting ntpd), it adds about 15 seconds to the boot-time for no significant benefit.