hwclock has life of its own
Aurel Wisse
yellowdog-general@lists.terrasoftsolutions.com
Wed Jan 29 19:46:01 2003
I just did some more digging into TLDP and found this
link: http://hints.linuxfromscratch.org/hints/time.txt
This seems to say that the UTC parameter of the
/etc/sysconfig/clock script is used by
/etc/rc.d/rc.sysinit and /etc/init.d/halt in order to
pass the correct parameter to hwclock --hctosys at
boot time and hwclock --systohc at shutdown.
I think that the fact that both clock -r and clock -r
--utc come up with the same time in your context is
because, probably, the third line in your /etc/adjtime
is UTC. Did you try /sbin/clock -r --localtime, for
fun?
Now, if I keep the hwclock in UTC, as yours, the
problem might be solved. Maybe /sbin/clock -r --utc is
meaningless if the hwclock is in localtime. I would
have to check the source of hwclock.
I'll try tomorrow switching the hwclock to UTC and see
what happens.
Thanks for your help.
Aurel
--- Christopher Murtagh
<christopher.murtagh@mcgill.ca> wrote:
> On Tue, 28 Jan 2003, Aurel Wisse wrote:
> >Thanks Christopher, but unfortunately it doesn't
> work:
>
> Hrm... strange. Ok, try this (just to make sure
> your system is
> config'd the same as mine).
>
> as root, do the following:
>
> cd /etc/
>
> rm localtime
>
> ln -s /usr/share/zoneinfo/America/Montreal
> localtime
>
> rdate -s time.nrc.ca
>
> clock -w
>
> reboot
>
> then try clock -r and clock -r --utc and see if
> they come up the same
> (they do on my machine):
>
> [root@mafalda etc]# /sbin/clock -r
> Wed 29 Jan 2003 12:40:48 PM EST -0.042178 seconds
> [root@mafalda etc]# /sbin/clock -r --utc
> Wed 29 Jan 2003 12:40:52 PM EST -0.563314 seconds
>
> Cheers,
>
> Chris
>
> --
>
> Christopher Murtagh
> Webmaster / Sysadmin
> Web Communications Group
> McGill University
> Montreal, Quebec
> Canada
>
> Tel.: (514) 398-3122
> Fax: (514) 398-2017
>
>
>
> _______________________________________________
> yellowdog-general mailing list
> yellowdog-general@lists.terrasoftsolutions.com
>
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com