Date: Fri, 13 May 2005 07:04:22 -0700 (PDT) From: Rob <spamrefuse@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: Setting up ntpd on FreeBSD (5.4) Message-ID: <20050513140422.40062.qmail@web54010.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
Michal Mertl wrote:> > /etc/ntp directory isn't used by default on 5.4. > The default location for ntp.drift file is /var/db. > I've never created it by hand (not even by > 'touching' it), it gets created automatically. No, there's no such default as "/var/db/ntp.drift". It's either "/etc/ntp.drift" or "/var/db/ntpd.drift", depending on which of the two you consider is the 'most' default :). There are different, hence somewhat confusing, defaults in FreeBSD for ntpd. "man ntpd" has this in the FILES section: /etc/ntp.conf the default name of the configuration file /etc/ntp.drift the default name of the drift file /etc/ntp.keys the default name of the key file whereas in /etc/defaults/rc.conf, you'll find: ntpd_flags="-p /var/run/ntpd.pid \ -f /var/db/ntpd.drift" Note that not only the directories differ, but also the filenames: "ntp" vs. "ntpd". ---------------------- To avoid these confusing defaults, I do following: In /etc/rc.conf: ntpd_enable="YES" ntpd_flags="-g" In /etc/ntp.conf: driftfile /var/db/ntpd.drift pidfile /var/run/ntpd.pid [...and other config lines...] Rob. Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050513140422.40062.qmail>