[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Re: fetchnews error: check_date



On 13 Mar 2003 10:52:36 +0100, clemens fischer wrote
> Alex Berger <alex.berger@xxxxxx>:
> 
> >> check_date: news.atnet.at: clocks of upstream and this computer are
> >> more than 10 minutes apart. Check your system clock.
> 
> i can only give you a hint about the clock:  on a unix system, you
> can simply use
> 
> 	ntpdate -us -t 123 193.67.79.202 194.97.4.214 \
> 	ntp0.freenet.de ntp1.freenet.de ||
> 	logger "$0 $@ exits $?:  ntpdate"
> 
> try to find good sources to replace the IPs and server names.  many
> universities run NTP (network time protocol) servers anybody may
> access.  you'd need to do this only once every few hours.  and don't
> forget to check your motherboards battery!  it keeps not only your
> quartz running, but some boards forget all about their disks if that
> battery fails.

I have this in /etc/cron.daily/time_set to keep display and hardware clock in
sync once a day:

#!/bin/sh

# set the hardware clock every day to avoid the problem of
# a hard shutdown messing up the time beyond what ntp can fix
# easily. Drop this in /etc/cron.daily

/usr/sbin/ntpdate -vs otc1.psu.edu ntp0.cornell.edu time.nist.gov clock.sgi.com

/usr/sbin/setclock

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list