[UCI-Linux] Re: problem with hwclock

Jeff Stern jastern@uci.edu
Tue, 8 Oct 2002 18:20:52 -0700


hi, dirk,

i only saw your message now.. i agree with you.. i've griped for years
about redhat (:P) not getting this right, since it's so simple to do.
it looked like they had made an effort in the 7-series, but it's not
really effective. don't know if they've updated it lately, but my
solution has traditionally been much like yours.. in my case, i made a
/usr/local/sbin/clock.sh file to sync from orion's time service:

==/usr/local/sbin/clock.sh==========================================
#!/bin/sh
# Set System (O/S) Clock using a network timeserver
/usr/bin/rdate -s orion.oac.uci.edu

# Set Hardware Clock from its System Clock
/sbin/hwclock --utc --systohc
====================================================================

and then i set a cron script in /etc/cron.hourly/0_clock.cron:

==/etc/cron.hourly/0_clock.cron=====================================
#!/bin/bash
/usr/local/sbin/clock.sh
====================================================================

--
Jeff Stern 949-824-5476 <jastern@uci.edu>
Social Science Computing Services