dhcpcd-discuss

Re: Terminating 'dhcpcd' From a Hook Script

Roy Marples

Thu Jun 15 16:00:42 2017

On 15/06/2017 16:46, David Hauck wrote:
>> I have an open ticket for this kind of special configuration here:
>> https://dev.marples.name/T116
>>
>> However, this still possible by taking advantage of Master Mode!
>> In Master Mode, dhcpcd will control all interfaces and allow remote control for stopping/starting each
>> interface. Just add the word master on a line by itself in the global section of dhcpcd.conf
> 
> Hmmm, OK, thx. I'll have to investigate what "master mode" is exactly. We have a very specific usage/invocation of 'dhcpcd' in order to properly interface with our application. This involves interface-specific and protocol-specific invocations - typically the following 'dhcpcd -4|-6 <interface>'. As a result it isn't uncommon to have active invocations like the following:
> 
> dhcpcd -4 eth0
> dhcpcd -6 etho
>  
> In my case I would only want to stop the former instance.

That *may* work.
I've not extensively tested it per protocol.

> Where would I find more information regarding the various behaviours/effects of master mode?

dhcpcd(8) is a fine place.
In a nutshell, master mode is when a single dhcpcd instance runs for all
interfaces/protocols.

> PS: It seems like your new site doesn't have up to date links for the various man pages (there are indications that these are being "worked on"). Should I be using the versions in the v6.11.5 archive for the most up to date versions?

I lack the time to bring the latest man pages online to the site atm.
But you should always use the man pages relevant to your version as the
config does change over time.

Roy

Follow-Ups:
RE: Terminating 'dhcpcd' From a Hook ScriptDavid Hauck
References:
Terminating 'dhcpcd' From a Hook ScriptDavid Hauck
Re: Terminating 'dhcpcd' From a Hook ScriptRoy Marples
RE: Terminating 'dhcpcd' From a Hook ScriptDavid Hauck
Archive administrator: postmaster@marples.name