ntpd

From Initq

Jump to: navigation, search

Correct system time is the most important thing for mail servers. This stamp is used on email and all the logs so always make sure your server time is correct. Use the following in your cron job.

In Solaris the zoneinfo files are kept in

/usr/share/lib/zoneinfo/

In All Linux systems they are kept at

/usr/share/zoneinfo/
ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
*/2 * * * * /usr/sbin/ntpdate -u 1.pool.ntp.org > /dev/null 2>&1

a507394@aowarll271:~$ file /etc/localtime
/etc/localtime: timezone data, version 2, 5 gmt time flags, 5 std time flags, no leap seconds, 235 transition times, 5 abbreviation chars
root@OWA-A-02:~#  mv /etc/localtime /etc/localtime.old; ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
Personal tools