Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65886 - bind 9.2.2-r4 ignoring PIDFILE setting
Summary: bind 9.2.2-r4 ignoring PIDFILE setting
Status: RESOLVED DUPLICATE of bug 65885
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-30 01:06 UTC by Ted Rodgers
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ted Rodgers 2004-09-30 01:06:32 UTC
Theinit for bind  /etc/init.d/named sets PIDFILE="/var/run/named/named.pid" when bind is not run chrooted.  The value is not being used and bind is trying to write named.pid to /var/run as named:named and it does not have permission to write there.   Thus, it fails to start.

Reproducible: Always
Steps to Reproduce:
1.install bind 9.2.2-r4 and edit named and zone files, do not enable chroot
2.start bind (/etc/init.d/named start)
3.

Actual Results:  
Sep 28 16:11:12 chipmunk named[6924]: loading configuration from
'/etc/bind/named.conf'
Sep 28 16:11:12 chipmunk named[6924]: listening on IPv4 interface eth0,
xxx.xxx.xxx.xxx#53
Sep 28 16:11:12 chipmunk process `named' is using obsolete setsockopt SO_BSDCOMPAT
Sep 28 16:11:12 chipmunk named[6924]: listening on IPv4 interface lo, 127.0.0.1#53
Sep 28 16:11:12 chipmunk named[6924]: command channel listening on 127.0.0.1#953
Sep 28 16:11:12 chipmunk named[6924]: couldn't open pid file
'/var/run/named.pid': Permission denied
Sep 28 16:11:12 chipmunk named[6924]: exiting (due to early fatal error)


Expected Results:  
named.pid should be written to /var/run/named/naemd.conf as set in
/etc/init.d/named:

        if [ $CHROOT -a -d $CHROOT ] ; then
                PIDFILE="${CHROOT}/var/run/named/named.pid"
                KEY="${CHROOT}/etc/bind/rndc.key"
        else
                PIDFILE="/var/run/named/named.pid"
                KEY="/etc/bind/rndc.key"
        fi



I've run strace, but am not sure what to look for in it
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-09-30 01:12:02 UTC

*** This bug has been marked as a duplicate of 65885 ***