<?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>133019</bug_id>
          
          <creation_ts>2006-05-11 06:59 0000</creation_ts>
          <short_desc>/etc/conf.d/dhcpd DHCPD_CHROOT minor bug</short_desc>
          <delta_ts>2006-05-11 08:01:44 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>coil93@mail.ee</reporter>
          <assigned_to>uberlord@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>coil93@mail.ee</who>
            <bug_when>2006-05-11 06:59:41 0000</bug_when>
            <thetext>/etc/conf.d/dhcpd at line 16
&quot;# Then run emerge dhcpd --config&quot;
must be 
&quot;# Then run emerge dhcp --config&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>coil93@mail.ee</who>
            <bug_when>2006-05-11 07:25:12 0000</bug_when>
            <thetext>Also /etc/init.d/dhcpd script doesnt work correctly with chrooted dhcpd&apos;s pidfile

in function stop()
start-stop-daemon --stop --exec /usr/sbin/dhcpd \
            --pidfile &quot;$(get_options pidfile)&quot;

in that case start-stop-daemon will search for pidfile in /var/run/dhcp/dhcpd.pid
, but not in $chroot_dir/var/run/dhcp/dhcpd.pid
IMO --pidfile &quot;${DHCP_CHROOT}/${pidfile}&quot; in function stop() is more preferable.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>uberlord@gentoo.org</who>
            <bug_when>2006-05-11 08:01:44 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; /etc/conf.d/dhcpd at line 16
&gt; &quot;# Then run emerge dhcpd --config&quot;
&gt; must be 
&gt; &quot;# Then run emerge dhcp --config&quot;

Fixed.

(In reply to comment #1)
&gt; Also /etc/init.d/dhcpd script doesnt work correctly with chrooted dhcpd&apos;s
&gt; pidfile
&gt; 
&gt; in function stop()
&gt; start-stop-daemon --stop --exec /usr/sbin/dhcpd \
&gt;             --pidfile &quot;$(get_options pidfile)&quot;
&gt; 
&gt; in that case start-stop-daemon will search for pidfile in
&gt; /var/run/dhcp/dhcpd.pid
&gt; , but not in $chroot_dir/var/run/dhcp/dhcpd.pid
&gt; IMO --pidfile &quot;${DHCP_CHROOT}/${pidfile}&quot; in function stop() is more
&gt; preferable.
&gt; 

Can&apos;t do that as the user may start it chroot, change the config to non-chroot and then do a stop. I&apos;ve fixed the stop function to prefix the pidfile with the started chroot.

Fixed in portage cvs, thanks for the report.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>