Subject: Re: netbsd clock problem...
To: Capt. Avram Dorfman <dorfman@pentagon.mil>
From: Dave Schmitt <dschmi1@umbc.edu>
List: port-mac68k
Date: 08/11/1998 17:41:04
On Tue, 11 Aug 1998, Capt. Avram Dorfman wrote:

> Is there any better info out there about dealing w/ the clock problem, 
> besides what's in the macbsd.com FAQ?
> 
> Has anyone built a how-to on setting up xntpd?

I didn't particularly want to deal with setting up xntpd, so instead I
created a cron job which polls the local NTP servers every hour and sets the
clock accordingly. It's inelegant but it works for me. The relevant crontab
entry (root's):

0 * * * * /usr/sbin/ntpdate ntp1.umbc.edu ntp2.umbc.edu ntp3.umbc.edu > /dev/null

You should be able to do something similar w/ any NTP servers you have
available. If you're losing 45 mins per day, resetting it once per hour
should keep you w/in 2 minutes of correct time, and if your needs are as
modest as mine are, that'll be fine. My current uptime is 36 days and at the
moment I'm w/in 3 seconds of where I should be.

Dave Schmitt <dschmi1@umbc.edu>