Linux Sync Date – Super easy

# Run it once by hand to get it sync'd now:
/usr/sbin/ntpdate 0.us.pool.ntp.org
# Then put it in cron, to run every 30 minutes
cd /etc/cron.d
echo "*/30 * * * * root /usr/sbin/ntpdate 0.us.pool.ntp.org > /var/log/ntpdate.log 2>&1" > ntpdate

About Dave Koopman

Started with Go Daddy in 2002 as a software developer in Email. In a team environment, we built Web-Based Email and Online Group Calendar. Since, positions include: Manager of Dedicated Hosting Development, Systems Architect, Manager of Mysql Operations, Email Architect, Chief Technology Officer, VP Product Development and most recently Chief Scientist. This is a personal blog and opinions are of my own and not necessarily that of my employer. I also author on Inside.GoDaddy.com. Connect with me on Google.
This entry was posted in Linux and tagged , , . Bookmark the permalink.

One comment on “Linux Sync Date – Super easy

  1. Eh, that’s what ntpd (the NTP daemon) is for.

    If required add
    server 0.us.pool.ntp.org
    in /etc/ntp.conf.

    /etc/init.d/ntpd start

Leave a Reply

Your email address will not be published. Required fields are marked *

*

HTML tags are not allowed.