dhcpcd-discuss

Re: dhcpcd is spawning new instances rather than using already running instance

Roy Marples

Thu Jul 16 13:37:14 2020

Hi Davesh

On 16/07/2020 11:52, Davesh Patel wrote:
Hi -

In Android, I'm using dhcpcd-6.8.2 at the command line (adb shell). (Actually, I'm using system() call in code but the same thing happens).

dhcpcd-6 is no longer supported by me.
You should look into upgrading, dhcpcd-9.1.4 is the latest

I have an instance of dhcpcd already running and I want to rebind (my goal is to trigger DHCP discover, etc). If I send |dhcpcd --rebind| it starts a new instance instead of causing the existing instance to rebind.

How do I act on the existing, running instance of dhcpcd rather than start a new instance?

Perhaps I am misunderstanding how dhcpcd works?

You should read the section on Multiple Interfaces in dhcpcd(8).
If dhcpcd was started with a single interface on the command line, all future invocations need the address there as well.

Roy

Follow-Ups:
Re: dhcpcd is spawning new instances rather than using already running instanceRoy Marples
References:
dhcpcd is spawning new instances rather than using already running instanceDavesh Patel
Archive administrator: postmaster@marples.name