Date: Thu, 10 Dec 2009 22:24:18 -0600 (CST) From: David Kelly <dkelly@Grumpy.DynDNS.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/141360: named_conf in /etc/rc.conf is ignored Message-ID: <20091211042418.2608F28435@Grumpy.DynDNS.org> Resent-Message-ID: <200912110500.nBB50DD4056713@freefall.freebsd.org>
index | next in thread | raw e-mail
>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 <filename> 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:
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091211042418.2608F28435>
