On Sun, Nov 04, 2001 at 10:53:37PM -0800, Ben Rosenberg wrote:
* wolfi (wolfi_z@yahoo.com) [011104 21:23]: ->Hi, -> ->I'm wondering if anyone else has come across this as well, it's since I ->have updated to 7.3 (default kernel) my in-box clock is faster than the ->outside world clock. ->It is already half an hour ahead after I think one week since I last set ->it. I already heared about problems with the SMP kernel, but I have only ->got a normal Athlon 500 box. ->Any ideas?
I would suggest using xntpd to keep your time correct. It checks time servers for the correct time...and it will reset everything for things such as daylight saving or whatever the case may be. It's also quite small and doesn't take up many resources.
If you have a dial up line, you can set things up to get
the
time from a timeserver when you connect. On SuSE this is dealt with in a script called /etc/ppp/poll.tcip, you need to turn this on in rc.config - read the comments about it. You may also want to coerce your system clock to comply by using hwclock(8).
I do this at my ISDN gateway, and the rest of my network syncs to it every now and then. This is unfortunately a bit of a pain if the sync co-incides with a "make", since GNU make, being as smart as paint, recognises clock skews when it is making ! However...
Bios clocks are notoriously awful at telling the time. The worse timekeeper on my network is in fact my newest, fastest, cooler-than-cool system.
Or if you are rich buy a radio clock for your system, this syncs to radio time transmitters. -- Regards Cliff
hwclock is not the best option to use in this case (however see some examples below, anyway). I would recommend the use of "netdate" to set the time (see the man page). Furthermore, Cliff forgot to mention the option: hwclock --adjust which simply changes the value in "/etc/adjtime" But, you can use hwclock to set the time, thus: hwclock --set --date /american/format time:min:sec" If you also find that your year is wrong, try the option: hwclock --badyear However, if you have an internet connection, stick with using "netdate". HTH, Thomas Adam
participants (1)
-
THOMAS ADAM