Frankly speaking, I could not find the code that can creates the empty
file, but here are the steps to reproduce:

1. Find interface that is not connected (to simplify tests), in my case
it is eth0.

2. Run and interrupt the client:
 sudo dhclient eth0
 [sudo] password for rtg:
 Internet Systems Consortium DHCP Client V3.0.5 
 Copyright 2004-2006 Internet Systems Consortium.
 All rights reserved.
 For info, please visit http://www.isc.org/sw/dhcp/

 Listening on LPF/eth0/00:c0:9f:b1:0e:04
 Sending on   LPF/eth0/00:c0:9f:b1:0e:04
 Sending on   Socket/fallback
 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8

3. Now rerun the client:
 sudo dhclient eth0
 There is already a pid file /var/run/dhclient.pid with pid 134519120
 Internet Systems Consortium DHCP Client V3.0.5 
 Copyright 2004-2006 Internet Systems Consortium.
 All rights reserved.
 For info, please visit http://www.isc.org/sw/dhcp/

4. Look at pidfile:
 ll /var/run/dhclient.pid
 -rw-r--r-- 1 root root 0 2008-04-23 23:42 /var/run/dhclient.pid

-- 
dhcp3-client warns about nonexisting pid
https://bugs.launchpad.net/bugs/219929
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dhcp3 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to