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
This entry was posted in Linux and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree