From owner-freebsd-current@FreeBSD.ORG Fri Mar 2 23:17:05 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B9D51065672 for ; Fri, 2 Mar 2012 23:17:05 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id D66ED8FC16 for ; Fri, 2 Mar 2012 23:17:04 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1S3biP-000KkQ-66; Fri, 02 Mar 2012 18:16:45 -0500 Date: Fri, 2 Mar 2012 18:16:45 -0500 From: Gary Palmer To: Rotate 13 Message-ID: <20120302231645.GA65949@in-addr.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: freebsd-current@freebsd.org Subject: Re: src.conf ignored; phantom named X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 23:17:05 -0000 On Fri, Mar 02, 2012 at 05:41:28PM -0500, Rotate 13 wrote: > I set WITHOUT_BIND="yes" in /etc/src.conf, and built/installed world. > Not only does /usr/sbin/named exist - named is actually started! > Several other WITHOUT_* variables also were apparently ignored, as > evidenced by stuff installed on running system. > > My main question is - how do I debug this? I have been combing over > makefiles under /usr/src (not to mention, going through /etc/rc.d/ > trying to figure out what actually started named). As far as I > ascertain, _WITHOUT_SRCCONF is *not* set anywhere for world building; > named_enable="no" in relevant rc.conf files; rpcbind and ntpd are not > running either. Since named daemonized, it's not easy to tell who > started it - and grepping everything in sight, I can't figure out how > it got built in the first place. > > uname -a: > FreeBSD xyz.example.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Thu Feb 29 > 10:28:17 CST 2012 root@xyz.example.com:/usr/obj/usr/src/sys/CUSTOM > amd64 > > I focused substantial attention on /usr/src/share/bsd.own.mk and > worked outward; but did not find anything obvious. > > Advice on where to poke for the right information, much appreciated. Does the datestamp on /usr/sbin/named reflect when you built the world or could named have been left over from a previous install? WITHOUT_BIND="yes" doesn't delete named if its already installed (not sure if 'make delete-old' cleans it up or not) As for named running, if you do sh /etc/rc.d/named restart does it succeed? If so, the 'named_enable="no"' flag must be set wrong. Also check to make sure that its not named from ports or some other location (e.g. check fstat or lsof or something to make sure its actually /usr/sbin/named and not from some other location) Regards, Gary