Project

General

Profile

Actions

Bug #13217

open

dhclient using default pid file location which does not exist

Added by Paul Arbour over 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
Viktor Gurov
Category:
DHCP (IPv4)
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Plus-Next
Release Notes:
Default
Affected Version:
Affected Architecture:
All

Description

The dhclient by default uses the location of /var/run/dhclient/dhclient.interface.pid to store the PID for the client process.
This directory does not exist on the system and so the dhclient will fail to renew IP addresses when it is used.
Specifically in my case, anytime my ISP needs to update my WAN address the dhclient will respawn a new version, because the pid file isn't there to confirm that it exists.

I can see that the code in the scripts that work to spawn and cleanup dhclient are using intelligent lookups to find the PID instead of using the PID file, it seems that dhclient itself doesn't really care how clever those scripts are.

Due to the dhclient being unable to find its own PID, i.e. to decide NOT to run another instance of the client you will end up with multiple dhclients running and will never be able to resolve an IP.

Actions

Also available in: Atom PDF