Bug 119384

Summary: /etc/defaults/rc.conf sets wrong path to named.pid
Product: Base System Reporter: hsu <hsu>
Component: confAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.3-PRERELEASE   
Hardware: Any   
OS: Any   

Description hsu 2008-01-06 15:10:00 UTC
        /etc/defaults/rc.conf sets wrong path to named.pid, it says
        /var/run/named/pid, while the correct path seems to be
        /var/run/named.pid

Fix: 

Fix: named/pid -> named.pid in /etc/defaults/rc.conf

        Workaround: set named_pidfile in /etc/rc.conf.
How-To-Repeat: 
        sh /etc/rc.d/named restart

        will complain that named is not running, while it is.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2008-01-06 17:30:05 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

Over to maintainer(s).
Comment 3 Barbara 2008-01-06 22:39:10 UTC
The first link should have been
http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/defaults/rc.conf#rev1.166
Comment 4 Doug Barton freebsd_committer freebsd_triage 2008-01-07 03:18:25 UTC
State Changed
From-To: open->closed


As the other user ("barbara") was kind enough to point out, 
this is by design so that an unprivileged named process can 
write to the /var/run/named directory.  

Please see the comments in /etc/defaults/rc.conf, about 
setting this to the same value in rc.conf and named.conf.
Comment 5 Doug Barton freebsd_committer freebsd_triage 2008-01-07 03:18:25 UTC
Responsible Changed
From-To: freebsd-rc->dougb


My area.