Re: Time Server Sync post install?

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

 



>> ... setup here and running and need it to sync with a time server <<

If a time sync once a day will do...

Edit the following script to point to your local time server and copy it into /etc/cron.daily:

#!/bin/sh
# get time from cornell and set system clock - including CMOS
# CMOS and Linux will be on local time
#
ntpdate ntp0.cornell.edu
hwclock --systohc --localtime

It might work in /etc/cron.hourly, but I don't need that kind of precision.

Since this is pointed at only one time server, it's not perfect. But, I've never had a problem with it. Then again, I'm not syncing a big network.

Cliff Kent


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux