ntpd and cmos clock update

Dan Nelson dnelson at allantgroup.com
Tue Aug 30 16:43:10 GMT 2005


In the last episode (Aug 30), Dag-Erling Smorgrav said:
> John-Mark Gurney <gurney_j at 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 at allantgroup.com


More information about the freebsd-hackers mailing list