From owner-freebsd-questions Fri May 5 4:56:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id D860937B788 for ; Fri, 5 May 2000 04:56:22 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id HAA14001; Fri, 5 May 2000 07:55:46 -0400 (EDT) (envelope-from cjc) Date: Fri, 5 May 2000 07:55:46 -0400 From: "Crist J. Clark" To: Stephen Beitzel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: xntpd startup duplication Message-ID: <20000505075546.B13920@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <200005050742.AAA00400@foobie.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200005050742.AAA00400@foobie.net>; from sbeitzel@foobie.net on Fri, May 05, 2000 at 12:42:06AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, May 05, 2000 at 12:42:06AM -0700, Stephen Beitzel wrote: > I have noticed that when I start up my FreeBSD (3.4) box, xntpd gets started > twice. The second time, it fails to run (gracefully) and writes a message to > the console saying that the port it wanted to use was already in use by > something else. (Duh. The first instance of xntpd.) > > Anyway, I finally got curious and went looking through the /etc/rc* files. > It turns out that /etc/rc and /etc/rc.network both invoke xntpd. The test > is different, though: > > >From /etc/rc: > if [ "X${xntpd_enable}" != X"NO" ]; then > echo -n ' xntpd'; xntpd > fi This is not in the current /etc/rc file for FreeBSD 3.4. What is the version of this file (the second line at the top, starting with '$FreeBSD'). > >From /etc/rc.network: > if [ "X${xntpd_enable}" = X"YES" ]; then > echo -n ' xntpd'; ${xntpd_program} ${xntpd_flags} > fi > > A couple of thoughts occured to me. > 1) It seems silly to me to have this test occur in two places. Probably, > whoever the maintainer is for the rc files ought to remove it from > one of them. It's not there now. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message