sync time through directadmin?

chris10121

Verified User
Joined
Feb 17, 2008
Messages
31
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.
 
This is how I do it and it's worked pretty well:

Code:
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.
 
thank you, i just installed ntp a few hours ago with yum and figured it out.
 
Back
Top