Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2004 01:53:30 +1030
From:      Malcolm Kay <malcolm.kay@internode.on.net>
To:        "Henning, Brian" <B.Henning@navitaire.com>, "Chris" <racerx@makeworld.com>, <freebsd-questions@freebsd.org>
Subject:   Re: ntpd
Message-ID:  <200402270153.30092.malcolm.kay@internode.on.net>
In-Reply-To: <B33A37369985DC47BAAF41511EC4807812346B@navmmex112.corp.nt.navitaire.com>
References:  <B33A37369985DC47BAAF41511EC4807812346B@navmmex112.corp.nt.navitaire.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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=3D"YES"
> xntpd_program=3D"/usr/sbin/ntpd"
> xntpd_flags=3D"-c /etc/ntp.conf"
> xntpd_flags=3D"-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=3D"-c /etc/ntp.conf  -p /var/run/ntpd.pid -f /var/db/ntpd.d=
rift"
or=20
  xntpd_flags=3D"-c /etc/ntp.conf"
  xntpd_flags=3D"$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=20
if it gets lost.

Malcolm



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402270153.30092.malcolm.kay>