On Sat, 5 Aug 2000 at 02:47, Jess Emerson Uy - ACENT Chairperson wrote:
>Since August 3,2000, our server has been acting weird. the time of the
>server still remains the same even if we changed the bios clock. We
>just noticed it because we have some scripts that depend on the time and
>it has been malfunctioning a bit.
I remember this time when I was kinda fanatic about the time of the
server. While scouring some documents I found out that while Windows gets
its time throughout the session from the hardware clock, Linux does not.
Linux just gets the time from the hardware clock on bootup, then uses
something like a software clock. It then synchronizes the hardware clock
with the system clock on shutdown, and perhaps also every so often. I
can't be sure of the latter, though. Just thought I'd share this, in case
you don't know it yet.
What I normally do to update the time of my server is to use a simple
script that:
1. Connects to the Internet ;
2. Uses ntpdate from the xntp3 package to synchronize the system clock
with a time server, right now I'm using tock.usno.navy.mil, there's also
tick.usno.navy.mil and ntp2.usno.navy.mil, among others ;
3. Uses hwclock to synchronize the hardware clock with the system clock by
running 'hwclock --systohc'.
So far it's been okay, and I checked my server right now and ... time's
right. :)
--> Jijo :-)
--
Federico Sevilla III
Network Administrator
THE LEATHER COLLECTION, INC.
#15 Don Mariano Lim Industrial Complex, Alabang-Zapote Road
beside Toyota - Alabang, Las Pinas City 1740 PHILIPPINES
Ofc: +63.2.842.2261
Fax: +63.2.842.2204
Apt: +63.2.523.8251 to 64 (loc 601)
Cel: +63.919.550.4216
-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]