bin/141360: named_conf in /etc/rc.conf is ignored
David Kelly
dkelly at Grumpy.DynDNS.org
Fri Dec 11 05:00:14 UTC 2009
>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 at 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:
More information about the freebsd-bugs
mailing list