Malcolm Kay malcolm.kay at internode.on.net
Thu Feb 26 07:23:35 PST 2004

On Thu, 26 Feb 2004 06:55, Henning, Brian wrote:
> Chris,
> I am trying to use the same setup as you have to get ntpd working.
> touch /var/db/ntpd.drift
> In my rc.conf file I have to use the following
> xntpd_enable="YES"
> xntpd_program="/usr/sbin/ntpd"
> xntpd_flags="-c /etc/ntp.conf"
> xntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift"

This line overwrites the value set in the previous line.
xntpd_flags is a shell variable, not an accumulator.
You want:
  xntpd_flags="-c /etc/ntp.conf  -p /var/run/ntpd.pid -f /var/db/ntpd.drift"
  xntpd_flags="-c /etc/ntp.conf"
  xntpd_flags="$xntpd_flags -p /var/run/ntpd.pid -f /var/db/ntpd.drift"

However /etc/ntp.conf is probably the default so it doesn't matter 
if it gets lost.


More information about the freebsd-questions mailing list