dhcpcd-discuss

Re: -C, --nohook doesn't seem to be working SOLVED

Dallas Clement

Wed Dec 14 20:01:04 2011

This seems to be working now after doing a system reboot.  Not sure
why restarting dhcpcd did not seem to work properly.  Anyhow, it is
solved for now.

On Wed, Dec 14, 2011 at 12:06 PM, Dallas Clement
<dallas.a.clement@xxxxxxxxx> wrote:
> I have observed that the 20-resolv.conf script is being executed for
> every interface even when I supply the -C or --nohook option to
> dhcpcd.
>
> root@bubba:/etc/init.d# ps | grep dhcp
>  6741 root       4976 S   /sbin/dhcpcd -b -d -h bubba -C 10-mtu -Z
> eth? -t 15 bond0
>  6901 root       4976 S   /sbin/dhcpcd -b -d -h bubba -G -C
> resolv.conf -C mtu -Z eth? -t 15 bond1
>
> I instrumented the 20-resolv.conf with the following so I could trace execution:
>
> touch "/tmp/resolv-$interface"
>
> And I see that this script is executed for every interface:
>
> root@bubba:/# ls /tmp
> resolv-bond0
> resolv-bond1

Archive administrator: postmaster@marples.name