[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Raq3 vs. real-time clock
- Subject: Re: [cobalt-users] Raq3 vs. real-time clock
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri Jul 5 18:24:04 2002
- Organization: Front Street Networks LLC
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Friday 05 July 2002 04:51 pm, Gerald Waugh wrote:
> On Friday 05 July 2002 02:11 pm, Mailing Lists wrote:
> > I may try Gerald's
> > idea from today on NTP server.
> That will get the time after network starts up and before S40crond
put rdate on it.
wget http://www.cnunix.com/ftp/linux/rdate-1.2.tar.gz
tar -zxvf rdate-1.2.tar.gz
cd rdate-1.2
make
make install
put this file (ntp.auto) in /etc/cron.daily
#========== file ntp.auto ===========
# set my clock about 4:00 am
usr/sbin/rdate -s <your-ntp-server> && hwclock --systohc
#============= end ==============
chmod 700 /etc/cron.daily/ntp.auto
cp /etc/cron.daily/ntp.auto etc/rc.d/init.d/ntpauto
This will reset your clock at 4:00 AM> If, when I get time. I'll take a look
ln -sf /etc/rc.d/init.d/ntpauto /etc/rc.d/rc0.d/K37ntpauto
ln -sf /etc/rc.d/init.d/ntpauto /etc/rc.d/rc1.d/K37ntpauto
ln -sf /etc/rc.d/init.d/ntpauto /etc/rc.d/rc2.d/S37ntpauto
ln -sf /etc/rc.d/init.d/ntpauto /etc/rc.d/rc3.d/S37ntpauto
ln -sf /etc/rc.d/init.d/ntpauto /etc/rc.d/rc4.d/S37ntpauto
ln -sf /etc/rc.d/init.d/ntpauto /etc/rc.d/rc5.d/S37ntpauto
ln -sf /etc/rc.d/init.d/ntpauto /etc/rc.d/rc6.d/K37ntpauto
chmod 700 /etc/rc.d/init.d/ntpauto
This will run rdate just after the network initializes and before crond
initializes
to use rdate from the command line issue
usr/sbin/rdate -p <your-ntp-server>
OK, I tested thid out by changing the time
and rebooting and it did correct the time
And it will correct before crond starts
--
Gerald Waugh
http://frontstreetnetworks.com SOHO Networks & Web Site Hosting
Front Street Networks LLC voice +1 203 785 0699 * fax +1 203 785 1787
229 Front Street, Ste. #C, New Haven CT 06513-3203