Re: Time Sync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux