Bug 162652

Summary: /etc/rc.d/named should always pass $named_conf
Product: Base System Reporter: Robert Schulze <rs>
Component: confAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 8.2-STABLE   
Hardware: Any   
OS: Any   

Description Robert Schulze 2011-11-18 09:30:11 UTC
In /etc/rc.d/named, the argument -c is only passed via rc.conf's parameter
"named_conf", when it differs from the default location:

if [ ! "$named_conf" = '/etc/namedb/named.conf' ]; then
                case "$named_flags" in
                -c*|*' -c'*) ;;         # No need to add it
                *) command_args="-c $named_conf $command_args" ;;
                esac
        fi

It would be better to always pass "-c $named_conf" when $named_conf is
nonempty, this makes it easier to use bind from the ports (not replacing
the system bind) without the need to set
named_flags="-c /etc/namedb/named.conf" explicitly.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-11-18 17:42:52 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

Over to maintainer(s).
Comment 2 Doug Barton freebsd_committer freebsd_triage 2011-11-18 19:13:31 UTC
State Changed
From-To: open->closed


It's not necessary from the ports either. Just let the port create the 
proper symlinks and everything works just fine.  


Comment 3 Doug Barton freebsd_committer freebsd_triage 2011-11-18 19:13:31 UTC
Responsible Changed
From-To: freebsd-rc->dougb


My area.