Re: Time problem

Rob B <[email protected]> Fri, 15 Nov 2002 15:42:57 +1100
Newsgroups gmane.linux.suse.axp
Message-ID <[email protected]>
At 16:30 13/11/2002 +0100, Rikard Johnels sent this up the stick:
>On Wednesday 13 November 2002 14.26, Predrag Cvetkovic wrote:
> >
> > running SuSE 7.1 Alpha edition, kernel 2.4.19 (from Linus kernel tree,
> > www.kernel.org), compiled with
> > # CONFIG_RTC is not set
> > System time on our machine is running late, about 20 seconds a day. Our job
> > is very time dependant, tolerance is 5 seconds. Problem with RTC set was
> > worse (about 30 sec./day).
> > What can I do?
>
>I have a cronjob running om my server to set the clock (both software and
>hardware) once every hour.
>That way i have a fairly correct time off by no more then a few milisecs.
>My closk is stable to begin with, but this way i ensure its running as 
>correct
>as possible.
>The script running is:
>
>#!/bin/sh
>/usr/sbin/netdate ntp.lth.se
>/sbin/hwclock --systohc
>touch /root/cronlogs/setdate.run
>
>The last line is just to give me a "proof" that the time is set. It can 
>safely
>be removed.

Why not use ntpd?  Waaaay more accurate.

cheers,
Rob


--
Duct tape is like the Force. It has a light side and a dark side, and it 
binds the universe together.

This is random quote 466 of a collection of 1255

Distance from the centre of the brewing universe:
[15200.8 km (8207.8 mi), 262.8 deg](Apparent) Rennerian

Public Key fingerprint = 6219 33BD A37B 368D 29F5  19FB 945D C4D7 1F66 D9C5