LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Alex Garner <alex@netcraft.com.au>
To : <akenning@topology.org>
Date: Thu, 24 May 2001 13:44:14 +0930 (CST)
Re: Time synchronisation.
> > > What do other people use to synchronise the system clock?
> > >
> > > I use rdate, but I find when the machine is rebooted it does not
> > > keep the synchronised time.
> >
> > rdate -s rdate.host
> > hwclock --systohc
> >
>
> That's what I used to use approximately on my old RH machines.
> But on SuSE machines, rdate is just not there.
> So I use this in my root cron file:
>
> 29 2,8,14,20 * * * /usr/sbin/ntpdate -s -t 2 ntp.adelaide.edu.au >/dev/null 2>&1
> 30 2,8,14,20 * * * /sbin/hwclock --utc --systohc
>
> It's a good idea to use --utc, of course, and also to specify the
> -u in the appropriate config file so that the boot software
> knows what the clock is set to.
If you are running RedHat, just use 'setclock' instead of hwclock.
This will read in your time zone and UTC settings from
/etc/sysconfig/clock and supply the arguments to hwclock
automatically. This file is used by the startup scripts to set the
system clock at boot.
/usr/bin/rdate -s
/usr/sbin/setclock
...is a bit neater. Not sure what other distributions have like this,
but this is the 'redhat approved' method.
Cheers
Alex!
--
Alex Garner <alex@netcraft.com.au>
NetCraft Australia
Phone (08) 8338 0888
http://www.netcraft.com.au
"We have achieved the best possible performance by using
the available power supply & holding the air velocity to
a level which will allow it to heat to the highest
temperature near dry hands could stand on a warm day."
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page