First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 133019
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Roy Marples (RETIRED) <uberlord@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Hod <coil93@mail.ee>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 133019 depends on: Show dependency tree
Bug 133019 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-05-11 06:59 0000
/etc/conf.d/dhcpd at line 16
"# Then run emerge dhcpd --config"
must be 
"# Then run emerge dhcp --config"

------- Comment #1 From Hod 2006-05-11 07:25:12 0000 -------
Also /etc/init.d/dhcpd script doesnt work correctly with chrooted dhcpd's
pidfile

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

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 "${DHCP_CHROOT}/${pidfile}" in function stop() is more
preferable.

------- Comment #2 From Roy Marples (RETIRED) 2006-05-11 08:01:44 0000 -------
(In reply to comment #0)
> /etc/conf.d/dhcpd at line 16
> "# Then run emerge dhcpd --config"
> must be 
> "# Then run emerge dhcp --config"

Fixed.

(In reply to comment #1)
> Also /etc/init.d/dhcpd script doesnt work correctly with chrooted dhcpd's
> pidfile
> 
> in function stop()
> start-stop-daemon --stop --exec /usr/sbin/dhcpd \
>             --pidfile "$(get_options pidfile)"
> 
> 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 "${DHCP_CHROOT}/${pidfile}" in function stop() is more
> preferable.
> 

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

Fixed in portage cvs, thanks for the report.

First Last Prev Next    No search results available      Search page      Enter new bug