Table of Contents

ntpd

Information

ntpd will keep your system time current.

If your clock has a large offset, consider using ntpdate $HOST before starting to use ntpd

Procedure

  1. create /etc/ntp.conf and enter a time server:
    server time.server.xxx
  2. set ntpd to start at boot by editing /etc/rc.conf:
    # ntpd
    ntpd_enable="YES"
  3. run ntpdate to get the initial clock sync:
    root@host# ntpdate time.server.xxx
  4. start ntpd:
    root@host# /etc/rc.d/ntpd start