Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133019 - /etc/conf.d/dhcpd DHCPD_CHROOT minor bug
Summary: /etc/conf.d/dhcpd DHCPD_CHROOT minor bug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 06:59 UTC by Hod
Modified: 2006-05-11 08:01 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 Hod 2006-05-11 06:59:41 UTC
/etc/conf.d/dhcpd at line 16
"# Then run emerge dhcpd --config"
must be 
"# Then run emerge dhcp --config"
Comment 1 Hod 2006-05-11 07:25:12 UTC
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 Roy Marples (RETIRED) gentoo-dev 2006-05-11 08:01:44 UTC
(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.