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

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, use /etc/netplug/linkdown.d/dhclient or /etc/netplug/linkup.d/dhclient script call /sbin/dhclient directly. The scripts should systemctl I think

1 Like

Can you create a bug report at https://phabricator.vyos.net/ ?

https://phabricator.vyos.net/T3852

Hello @xiangchu , could you try to retest this behavior with the latest 1.3 rolling?

I additionally confronted a similar issue however presently it is settled for me. Much thanks to you for the assistance.