Re: Convention of dhcpcd -k
Roy Marples
Tue Aug 29 09:38:47 2017
On 29/08/17 06:16, Neal P. Murphy wrote:
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.
Correct :)
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.
I seemed to have forgotten!
Fixed here:
https://dev.marples.name/rDHC01e041c25d9b46bc4114b108904bba271f183545
Roy
Archive administrator: postmaster@marples.name