Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: dhc* in NetBSD 7.0



On 27/03/2013 8:40, Hauke Fath wrote:
A minor nit, though - when you start dhcpcd on a specific interface, the
rc.d script fails to pick up the pid file:

# /etc/rc.d/dhcpcd status
dhcpcd is not running.
# /etc/rc.d/dhcpcd start
Starting dhcpcd.
dhcpcd: dhcpcd already running on pid 13901 (/var/run/dhcpcd-bm0.pid)
# pgrep dhcpcd
13901
#

I have no idea how to go about fixing that. The only thing I can think of is to add an option to dhcpcd to pre-process the arguments and spit out a list of interfaces it will run on and adjust the pidfile accordingly, but I really dislike that. Anyone have any other bright ideas?

Historically dhcpcd ran per interface, but these days it can run one instance for all interfaces which is how the rc.d script is designed. My recommendation is to let dhcpcd run for all interfaces and if it needs limiting then use the allowinterfaces and/or denyinterfaces directive in dhcpcd.conf

Thanks

Roy


Home | Main Index | Thread Index | Old Index