openbsd-ports/net/ntp/files
2010-07-03 02:49:43 +00:00
..
README.OpenBSD update to 4.2.6p1 and remove a lot of cruft 2010-07-03 02:49:43 +00:00

Several steps need to be taken to properly configure the NTP daemon.

1. First, create or update the file ${SYSCONFDIR}/ntp.conf.  Several
   example configuration files can be found here:

     ${PREFIX}/share/examples/ntp

2. Add the following to /etc/rc.local

   if [ X"${xntpd_flags}" != X"NO" -a -x ${PREFIX}/sbin/ntpd \
       -a -f ${SYSCONFDIR}/ntp.conf ]; then
           echo -n ' ntpd'; ${PREFIX}/sbin/ntpd ${xntpd_flags}
   fi

3. Edit /etc/rc.conf.local:

   xntpd_flags=""                   # change to NO to disable