PDA

View Full Version : sync time through directadmin?



chris10121
03-05-2008, 03:57 PM
Is there any way to sync my servers time with the us atomic clock through direct admin?

If not, does anyone know how I can get my server to sync time with the us atomic clock? and by time I mean date and time, not cpu timing or anything.

GXX
03-05-2008, 06:05 PM
This is how I do it and it's worked pretty well:


15 * * * 5 /usr/sbin/ntpdate us.pool.ntp.org >/dev/null 2>&1
20 * * * 5 /sbin/hwclock --systohc >/dev/null 2>&1

Syncs time with the ntp pool server once a week, then makes the hardware clock sync to it a few mins later. You can adjust the cron time as you'd like.

chris10121
03-05-2008, 08:25 PM
thank you, i just installed ntp a few hours ago with yum and figured it out.