dhcpcd pid file location
dhcpcd is configured with --rundir=/run
. I think this is wrong. The default is to use a dedicated subdirectory (/var/run/dhcpcd
). Since dhcpcd assumes its files are in a subdirectory, it names them accordingly. But that naming is very weird when the common /run
is used. E.g for a master dhcpcd process ("[manager]
"):
$ dhcpcd --printpidfile
/run/pid
which is ... surprising at the very least.
Note that the rc script thinks that pidfile="/run/dhcpcd.pid"
(which is also wrong, b/c dhcpcd is run for the specific interface, so it will use a separate per-interface pid file, but that's a different issue).