Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2005 11:42:49 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Dag-Erling Smorgrav <des@des.no>
Cc:        freebsd-hackers@freebsd.org, dmitry.mityugov@gmail.com
Subject:   Re: ntpd and cmos clock update
Message-ID:  <20050830164248.GA4337@dan.emsphone.com>
In-Reply-To: <86wtm3eec2.fsf@xps.des.no>
References:  <4311BDAD.1010803@icyb.net.ua> <b7052e1e05082905206b1f0f31@mail.gmail.com> <20050829.170125.88345281.imp@bsdimp.com> <20050830065931.GD61824@funkthat.com> <86wtm3eec2.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 30), Dag-Erling Smorgrav said:
> John-Mark Gurney <gurney_j@resnet.uoregon.edu> writes:
> > but since we don't set the TOD chip upon reboot, all the work that
> > ntpd did over the previous reboot is lost...
> 
> echo 'ntpdate_enable="YES"' >>/etc/rc.conf

I think he meant shutdown instead of reboot.  ntpd will step the clock
itself on bootup if it needs to (although not as quickly at ntpdate
certainly).

Just calling resettodr during shutdown would be the easiest solution, I
think.  Or have a kernel timer fire that calls it every 24 hours.

-- 
	Dan Nelson
	dnelson@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050830164248.GA4337>