Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178050 - net-dns/bind will not start in chroot after configured
Summary: net-dns/bind will not start in chroot after configured
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: x86 FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-11 13:08 UTC by Dan Coats
Modified: 2007-05-12 23:19 UTC (History)
1 user (show)

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


Attachments
Patch to correct the start-stop-daemon line to be compatible with plain sh (named.diff,352 bytes, patch)
2007-05-12 22:55 UTC, Pierre Guinoiseau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Coats 2007-05-11 13:08:19 UTC
Cannot start named in chroot using the init script


Reproducible: Always

Steps to Reproduce:
1.emerge bind (tested 9.3.2-r5 and 9.4.1)
2.nano -w /etc/conf.d/named and uncomment CHROOT="/chroot/dns"
3.emerge --config =9.4.1
4.echo "alias rndc='rndc -k /chroot/dns/etc/bind/rndc.key'" >> /root/.bashrc
5.source /root/.bashrc
6./etc/init.d/named start

Actual Results:  
 * Starting chrooted named ...
named: chroot(): No such file or directory                                                                                                           [ !! ]
 * ERROR: named failed to start

Expected Results:  
named starts with correct parm's.
 /usr/sbin/named -u named -n 1 -t /chroot/dns

commenting out the 
CHROOT="/chroot/dns"
in /etc/conf.d/named allows named start normal without chroot.
Comment 1 Dan Coats 2007-05-11 13:18:48 UTC
starting bind from commandline in chroot functions normal.
#/usr/sbin/named -u named -n 1 -t /chroot/dns
Comment 2 Pierre Guinoiseau 2007-05-12 22:55:10 UTC
Created attachment 119053 [details, diff]
Patch to correct the start-stop-daemon line to be compatible with plain sh

It works fine for me on my g/fbsd :)
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-05-12 23:19:48 UTC
Fixed, thanks.

No revbump as voxus assures me there's a new version in a week.