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.
(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.