Re: Bug#133790: dhcp-client continues running after removal
On Mon, Feb 18, 2002 at 09:50:25PM -0500, Eloy A. Paris wrote:
> Chris,
>
> This is one that I am actually not sure how to handle. The problem is
> that dhclient is not being started by a script in the dhcp-client
> package (like /etc/init.d/dhcp-client or something like that.) It is
> being started by ifup or by the PCMCIA scripts (/etc/pcmcia/network.)
>
> I suppose I could kill any dhclient running upon removal, but that
> might cause problems with the PCMCIA stuff or the ifup/ifdown stuff.
>
> People in debian-devel: suggestions?
My suggestion would be to change the source so when it is started it
produces a pid file in /var/run. When the program quits it should delete
it's pid. Then in your prerm just use the start-stop-daemon.
I have done something similar with the yiff-server package so if you
want I can provide a patch..
- Adam
Reply to: