If you just run the ntpd service on your server the clock will keep itself in sync, though you should store its value to the bios periodically. For CentOS:
Code:
yum -y install ntp
chkconfig ntpd on
service ntpd start
Then add a daily or weekly cron that does:
Code:
/sbin/hwclock --systohc
If you want a more accurate local clock, you can update the /etc/ntp.conf file to specify different server lines. You can use time.steadfast.net as a local time source, and googling should help you find some other reliable NTP servers.
Bookmarks