For now i've inserted in /etc/crontab the folowing: 0 * * * * root /usr/sbin/netdate time.ien.it & 1 * * * * root /sbin/hwclock --systohc & It is set to do it any minute. On 5 Jan 2002 at 13:05, wolfi wrote:
C'e forse la questa storia ???!??
Ciao ... Wolfi
-----Forwarded Message-----
From: wolfi
To: suse-linux-e@suse.com Subject: [SLE] Suse hwclock bug - Solved Date: 26 Oct 2001 16:04:40 +0200 Hello all
I have posted to this list many times in trying to solve a problem with hwclock. It would set a completely random and unusual time every time I booted up 7.1. I made logs and kept track of the time every time I booted and/or rebooted 7.1 There was no rhyme or reason to what was happening.
What was the cause??? A BUG !! I also subscribe to SLUG (Suncoast Linux Users Group) (Tampa Florida) where after several posts one of the members came up with the solution. Following is his reply to me which solved the problem. I post it here so that others can benefit from it. ---------------------------------------------------
Re: [SLUG] First of a Dozen Questions - Follow-up From: Ed Centanni
To: slug@nks.net Date: Wed, 24 Oct 2001 22:14:24 -0400 Bob Stia wrote:
Hello Sluggers,
Am still fighting my time problem. Am also subscribed to the SuSE mailing list and have posted to that list several times regards this problem. No luck. Others have this same problem. Nobody seems to have the answer. Been doing some analysis and record keeping on what is happening. Figured I would give the Sluggers another shot at it with a little more information. Following is a copy of a post that I made to the Suse list.
<snip>
Here's what I know about this situation.
1. There's a bug in SuSE's /etc/rc.d/boot script that will cause the system clock to NOT be set to the hardware clock on boot. The bug has been there for several releases that I know of. (anybody at SuSE listening?!) At boot time the PATH doesn't seem to include /sbin and some commands have to be invoked by their full path name. Notice all the commands in the boot script that begin with /sbin... Look in /etc/rc.d/boot for the shell variable CLOCKCMD. You'll probably see something like:
CLOCKCMD=hwclock
change it to
CLOCKCMD=/sbin/hwclock
For good measure I also put the line "/sbin/hwclock --hctosys" in /etc/rc.d/boot.local.
Alternatively (to changing your boot script) you can put a link in /bin that points to hwclock or copy the executable from /sbin to /bin.
Now go into yast and go to "System Administration", then select "Change Configuration File". Scroll down or search for the GMT entry. This value of this entry is given to the hwclock command as an additional argument and can be anything that hwclock accepts. It should be blank (Current value <> ) if your bios clock is set to local time. Be warned that hwclock can get squirrely (not act as expected) even with no additional options if you *previously* specified certain options. From the man pages:
"If you specify neither --utc nor --localtime , the default is whichever was specified the last time hwclock was used to set the clock (i.e. hwclock was successfully run with the --set , --systohc , or --adjust options), as recorded in the adjtime file. If the adjtime file doesn't exist, the default is local time."
If in doubt delete the /etc/adjtime file so hwclock will re-create it and reset it back to something sane.
2. If you're running KDE2 then the time setting utility (right click on clock in the panel) assumes that your hardware clock is set to gmt (the time zone not the variable). If your hardware clock is on local time then set the time zone to "no selection". This should straighten up the KDE2 clock.
I had similar time problems on three SuSE 7.1 installations and some 6.4's too. The above fixed them all.
Ed.
That solved the problem.
Bob S.
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
---------------------- Mario Via Emilia 1 10078 Venaria Reale Tel: 800.991.475 ---------------------- Davide.it è il primo servizio italiano di connessione filtrata alla rete. Veloce, sicuro e gratuito: http://www.davide.it Registrati ora!