From owner-freebsd-questions@FreeBSD.ORG Thu Feb 26 07:23:35 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFA5B16A4CE for ; Thu, 26 Feb 2004 07:23:35 -0800 (PST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id B539543D39 for ; Thu, 26 Feb 2004 07:23:34 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp36-48.lns1.adl1.internode.on.net [150.101.36.48]) i1QFNUUK031358; Fri, 27 Feb 2004 01:53:31 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: "Henning, Brian" , "Chris" , Date: Fri, 27 Feb 2004 01:53:30 +1030 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200402270153.30092.malcolm.kay@internode.on.net> Subject: Re: ntpd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 15:23:35 -0000 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