Page MenuHomeVyOS Platform

DHCP client issue - interface has two dhclient processes when link is unpluged and then plug again
Closed, ResolvedPublicBUG

Description

version: 1.3
interface has two dhclient processes when link is unpluged and then plug again

before interface is unpluged

root      3407     1  0 11:08 ?        00:00:00 /sbin/dhclient -4 -nw -cf /var/lib/dhcp/dhclient_eth6.conf -pf /var/lib/dhcp/dhclient_eth6.pid -lf /var/lib/dhcp/dhclient_eth6.leases  eth6

after unpluging the interface and plug it again, get two dhclient processes:

root      3407     1  0 11:08 ?        00:00:00 /sbin/dhclient -4 -nw -cf /var/lib/dhcp/dhclient_eth6.conf -pf /var/lib/dhcp/dhclient_eth6.pid -lf /var/lib/dhcp/dhclient_eth6.leases eth6
root      3641     1  0 11:16 ?        00:00:00 /sbin/dhclient -q -nw -cf /var/lib/dhcp/dhclient_eth6.conf -pf /var/lib/dhcp/dhclient_eth6.pid -lf /var/lib/dhcp/dhclient_eth6.leases eth6

the reason is: use systemctl start dhclient, but when interface link is down/up, /etc/netplug/linkdown.d/dhclient or /etc/netplug/linkup.d/dhclient script call /sbin/dhclient directly. The scripts should systemctl I think

Details

Difficulty level
Normal (likely a few hours)
Version
1.3 equuleus above
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)