dhclient process lifetime
Lukas Erlacher
erlacher at in.tum.de
Tue Feb 6 22:46:57 UTC 2018
Hi Pavel,
thanks for your reply.
In fact, I see no such message. Here is what I see:
> (testenv) root at manarati-two:~# pgrep -a dhclient
> (testenv) root at manarati-two:~# cat /run/dhclient.eth0.pid
> 29121
> (testenv) root at manarati-two:~# dhclient -v -w -4 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
> Internet Systems Consortium DHCP Client 4.3.5
> Copyright 2004-2016 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
>
> Listening on LPF/eth0/b8:27:eb:be:35:8a
> Sending on LPF/eth0/b8:27:eb:be:35:8a
> Sending on Socket/fallback
> DHCPREQUEST of 192.168.13.151 on eth0 to 255.255.255.255 port 67
> DHCPACK of 192.168.13.151 from 192.168.13.1
> RTNETLINK answers: File exists
> bound to 192.168.13.151 -- renewal in 789 seconds.
> (testenv) root at manarati-two:~# pgrep -a dhclient
> 10875 dhclient -v -w -4 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
> (testenv) root at manarati-two:~# cat /run/dhclient.eth0.pid
> 10875
> (testenv) root at manarati-two:~# dhclient -v -w -4 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
> Internet Systems Consortium DHCP Client 4.3.5
> Copyright 2004-2016 Internet Systems Consortium.
> All rights reserved.
> For info, please visit https://www.isc.org/software/dhcp/
>
> Listening on LPF/eth0/b8:27:eb:be:35:8a
> Sending on LPF/eth0/b8:27:eb:be:35:8a
> Sending on Socket/fallback
> DHCPREQUEST of 192.168.13.151 on eth0 to 255.255.255.255 port 67
> DHCPACK of 192.168.13.151 from 192.168.13.1
> RTNETLINK answers: File exists
> bound to 192.168.13.151 -- renewal in 729 seconds.
> (testenv) root at manarati-two:~# pgrep -a dhclient
> 10875 dhclient -v -w -4 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
> 10902 dhclient -v -w -4 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
> (testenv) root at manarati-two:~# cat /run/dhclient.eth0.pid
> 10902
> (testenv) root at manarati-two:~#
So for some reason dhclient is not performing the check for a running
instance correctly.
On 02/07/2018 02:23 AM, Pavel Zhukov wrote:
> Lukas Erlacher <erlacher at in.tum.de> writes:
> Hello,
>
> You have see something like
> # dhclient -v -4 -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases client1
> dhclient(30189) is already running - exiting.
>
> the pid (30189) is stored in /run/dhclient.eth0.pid and it prevent
> second copy of dhclient to be started as it was been
> specified in your command line. Can you check/share content of this
> file?
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5167 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20180207/87ddd090/attachment.bin>
More information about the dhcp-users
mailing list