Re: Time problem
Rikard Johnels <[email protected]> Fri, 15 Nov 2002 16:23:54 +0100
| Newsgroups | gmane.linux.suse.axp |
|---|---|
| Organization | rikjoh |
| Message-ID | <[email protected]> |
On Friday 15 November 2002 05.42, Rob B wrote:
> 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
Because i was lazy?
And i hadnt ntpd installed at that particular moment...
Excuses excuses.. :)
I never said it was perfect, just a dirty fix i have running.. :)
--
/Rikard
------------------------------------------------------------------------------------
Rikard Johnels email : [email protected]
Web : http://www.rikjoh.com
Mob : +46 70 464 99 39
------------------------ Public PGP fingerprint ----------------------------
< 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >