Re: Convention of dhcpcd -k
Neal P. Murphy
Tue Aug 29 05:23:25 2017
On Tue, 29 Aug 2017 10:25:24 +0800
Guan Xin <guanx.bac@xxxxxxxxx> wrote:
> Hi,
>
> I noticed that "dhcpcd -k ${IF_NAME}" reports "dhcpcd not running" if the
> "-4" option was supplied when dhcpcd was started. i.e.,
>
> # dhcpcd -4 eth0
> ...
> # dhcpcd -k eth0
> dhcpcd not running
> # dhcpcd -k -4 eth0
> sending signal ARLM to pid XXXX
> waiting for pid XXXX to exit
>
> I did not find this feature in the docs. Is it a bug?
It's a feature, because you might have one dhcpcd handling IPv4 and one handling IPv6. If you specify the protocol version when starting, you must specify the version when stopping. Similarly, if you don't specify the protocol version when starting, don't specify it when stopping.
Roy mentioned this a while back, and I *think* he put it into later/newer docs. Or he was going to. Butit's definitely a feature.
N
Archive administrator: postmaster@marples.name