Time Sync

Christopher Ness nesscg at mcmaster.ca
Mon Mar 1 19:15:33 UTC 2004


On Mon, 2004-03-01 at 11:09, Phil Hannent wrote:
> I also am not bothered about running a time server, just really want it
> to sync on boot or every hour would be good enough.

You could create a cron job in root and have it run daily.  Here's my
cron entry.  This runs every day at noon, to do this hourly change the
12 to a *.

==================================================
[root at therock bin]# cat crontab.txt
SHELL=/bin/bash
MAILTO=root
HOME=/root
LANG=en_US
  
  
00 12 * * *  /usr/sbin/ntpdate -u -s -t 20 ntp.cpsc.ucalgary.ca
ntp1.cmc.ec.gc.ca tick.utoronto.ca time.chu.nrc.ca time.nrc.ca
timelord.uregina.ca
===================================================

You install this as root by typing at the console

# crontab crontab.txt

You can verify that it is set by typing...

# crontab -l

Cheers,
Chris
-- 
Software Engineering IV,
McMaster University
PGP Public Key: http://nesser.org/pgp-key/

14:11:39 up 39 min, 2 users, load average: 0.00, 0.05, 0.08 

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20040301/ba500c9f/attachment-0002.bin 


More information about the users mailing list