From owner-freebsd-bugs@FreeBSD.ORG Fri Dec 11 05:00:14 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 195E5106566B for ; Fri, 11 Dec 2009 05:00:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D11E18FC12 for ; Fri, 11 Dec 2009 05:00:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBB50DdQ056714 for ; Fri, 11 Dec 2009 05:00:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBB50DD4056713; Fri, 11 Dec 2009 05:00:13 GMT (envelope-from gnats) Resent-Date: Fri, 11 Dec 2009 05:00:13 GMT Resent-Message-Id: <200912110500.nBB50DD4056713@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Kelly 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/141360: named_conf in /etc/rc.conf is ignored X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: David Kelly List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Dec 2009 05:00:14 -0000 >Number: 141360 >Category: bin >Synopsis: named_conf in /etc/rc.conf is ignored >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 11 05:00:13 UTC 2009 >Closed-Date: >Last-Modified: >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 invokation. >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: >Unformatted: