pid file cannot be generated without dhclient prefix

Lida Li lilida at
Fri Feb 9 17:05:59 UTC 2018


After recent upgrade (4.2.4->4.3.3), I found out the -pf didn't work if the
pid file has no prefix of dhclient. I wonder if it is a design change or
sth. else. I spent some time studying the source code but couldn't find any
check on it.

With dhclient prefix:
[root at node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# dhclient -q -lf
/var/lib/dhclient/dhclient4-ns-12:31:ec:27:b1:d6.leases -pf
/var/run/ eth0
[root at node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# ls /var/run/dh*

Without dhclient prefix
[root at node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# dhclient -v -lf
/var/lib/dhcp/dhclientabc.leases -pf /var/run/ eth0
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit
Listening on LPF/dev5/12:02:ce:9f:a3:fc
Sending on LPF/dev5/12:02:ce:9f:a3:fc
Sending on Socket/fallback
DHCPDISCOVER on dev5 to port 67 interval 3 (xid=0xcbd9b84e)
DHCPREQUEST of on dev5 to port 67
DHCPACK of from
bound to -- renewal in 1481 seconds.

[root at node-cmp-test-kubecluster-2-0a03c326:/home/lidali]# ls
ls: cannot access '/var/run/': No such file or directory

System information:
4.13.0-31-generic #34
SMP Fri Jan 19 17:11:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

However, this does happen on my old host:
4.14.13-01 #1 <> SMP
14.04.5-Ubuntu Wed Jan 10 21:53:40 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Any ideas?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dhcp-users mailing list