From dkelly@Grumpy.DynDNS.org Fri Dec 11 04:51:03 2009 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25B32106566C for ; Fri, 11 Dec 2009 04:51:03 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.freebsd.org (Postfix) with ESMTP id 49BF48FC12 for ; Fri, 11 Dec 2009 04:51:01 +0000 (UTC) Received: (qmail 30549 invoked by uid 0); 11 Dec 2009 04:24:21 -0000 Received: from unknown (HELO Grumpy.DynDNS.org) (24.42.224.110) by smtp1.knology.net with SMTP; 11 Dec 2009 04:24:21 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id 2608F28435; Thu, 10 Dec 2009 22:24:18 -0600 (CST) Message-Id: <20091211042418.2608F28435@Grumpy.DynDNS.org> Date: Thu, 10 Dec 2009 22:24:18 -0600 (CST) From: David Kelly Reply-To: David Kelly To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: named_conf in /etc/rc.conf is ignored X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 141360 >Category: bin >Synopsis: named_conf in rc.conf(5) is ignored >Confidential: no >Severity: non-critical >Priority: low >Responsible: dougb >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 11 05:00:13 UTC 2009 >Closed-Date: Sat Dec 12 08:22:54 UTC 2009 >Last-Modified: Sat Dec 12 08:22:54 UTC 2009 >Originator: David Kelly >Release: FreeBSD 7.2-STABLE i386 >Organization: >Environment: System: FreeBSD Grumpy.DynDNS.org 7.2-STABLE FreeBSD 7.2-STABLE #1: Wed Aug 19 14:14:54 CDT 2009 dkelly@Grumpy.DynDNS.org:/usr5/obj/usr/src/sys/OPUS i386 >Description: If one wishes to rename /etc/namedb/named.conf to something else, perhaps to preserve one's preferences from being reset by mergemaster, one would expect the named_conf variable from /etc/defaults/rc.conf to properly specify the new file name. It does not. /etc/rc.d/named only uses $named_conf when running named-checkconf. :-( To specify a different config file one must add -c to the named invocation. >How-To-Repeat: Add to /etc/rc.conf the following line: named_conf="/etc/namedb/named.conf.original" Then: mv /etc/namedb/named.conf /etc/namedb/named.conf.original /etc/rc.d/named restart and on restart named dies with fatal error because it could not find named.conf. >Fix: Change this line (3rd from the end) in /etc/rc.d/named from command_args="-u ${named_uid:=root} to command_args="-u ${named_uid:=root} -c ${named_conf:=/etc/namedb/named.conf}" Perhaps if named_conf is not specified at all one should not specify -c with what is believed to be the default path named would use without -c. >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Fri Dec 11 07:01:13 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=141360 State-Changed-From-To: open->closed State-Changed-By: dougb State-Changed-When: Sat Dec 12 08:21:33 UTC 2009 State-Changed-Why: Duplicate of 138686 Responsible-Changed-From-To: freebsd-rc->dougb Responsible-Changed-By: dougb Responsible-Changed-When: Sat Dec 12 08:21:33 UTC 2009 Responsible-Changed-Why: I'm handling the original http://www.freebsd.org/cgi/query-pr.cgi?pr=141360 >Unformatted: