<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>178050</bug_id>
          
          <creation_ts>2007-05-11 13:08 0000</creation_ts>
          <short_desc>net-dns/bind will not start in chroot after configured</short_desc>
          <delta_ts>2007-05-12 23:19:48 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo/Alt</product>
          <component>FreeBSD</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>FreeBSD</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>admin@easyshellz.com</reporter>
          <assigned_to>bsd@gentoo.org</assigned_to>
          <cc>geekounet@poildetroll.net</cc>

      

      
          <long_desc isprivate="0">
            <who>admin@easyshellz.com</who>
            <bug_when>2007-05-11 13:08:19 0000</bug_when>
            <thetext>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=&quot;/chroot/dns&quot;
3.emerge --config =9.4.1
4.echo &quot;alias rndc=&apos;rndc -k /chroot/dns/etc/bind/rndc.key&apos;&quot; &gt;&gt; /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&apos;s.
 /usr/sbin/named -u named -n 1 -t /chroot/dns

commenting out the 
CHROOT=&quot;/chroot/dns&quot;
in /etc/conf.d/named allows named start normal without chroot.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>admin@easyshellz.com</who>
            <bug_when>2007-05-11 13:18:48 0000</bug_when>
            <thetext>starting bind from commandline in chroot functions normal.
#/usr/sbin/named -u named -n 1 -t /chroot/dns</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>geekounet@poildetroll.net</who>
            <bug_when>2007-05-12 22:55:10 0000</bug_when>
            <thetext>Created an attachment (id=119053)
Patch to correct the start-stop-daemon line to be compatible with plain sh

It works fine for me on my g/fbsd :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2007-05-12 23:19:48 0000</bug_when>
            <thetext>Fixed, thanks.

No revbump as voxus assures me there&apos;s a new version in a week.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>119053</attachid>
            <date>2007-05-12 22:55 0000</date>
            <desc>Patch to correct the start-stop-daemon line to be compatible with plain sh</desc>
            <filename>named.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG5hbWVkLm9sZAkyMDA3LTA1LTEzIDAwOjQ0OjUwICswMjAwCisrKyAvZXRjL2luaXQuZC9u
YW1lZAkyMDA3LTA1LTEzIDAwOjQ1OjAzICswMjAwCkBAIC0zOCw3ICszOCw3IEBACiAJY2hlY2tj
b25maWcgfHwgcmV0dXJuIDEKIAlzdGFydC1zdG9wLWRhZW1vbiAtLXN0YXJ0IC0tcXVpZXQgLS1w
aWRmaWxlICR7UElERklMRX0gXAogCQktLWV4ZWMgL3Vzci9zYmluL25hbWVkIFwKLQkJLS0gLXUg
bmFtZWQgLW4gJHtDUFV9ICR7T1BUSU9OU30gJHtDSFJPT1Q6Ky10ICRDSFJPT1R9CisJCS0tIC11
IG5hbWVkIC1uICR7Q1BVfSAke09QVElPTlN9ICR7Q0hST09UOistdH0gJHtDSFJPT1R9CiAJZWVu
ZCAkPwogfQogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>