dhcpcd icon indicating copy to clipboard operation
dhcpcd copied to clipboard

"dhcpcd -x <interface>" shoud wait for interface to exit and report error if failed in command line during manager mode

Open learn-sys16 opened this issue 1 year ago • 1 comments

Hi,

Current architecture seems for manager or global mode is when I pass any subsequent commands to daemon, they will be transferred to control process and my command will exits immediately without waiting for control process's response.

For example: dhcpcd --manager interface1 interface2

dhcpcd -4 -x interface1 It will exit after printing: sending commands to dhcpcd process

And control process will handle this command in background, I think it will be good if this command will wait for reply from control process and report success or failure depending on results.

Not sure if there is any existing option that I'm missing that could do this, will appreciate suggestions. I'm looking for a way to wait until control process has terminated dhcp4 from that interface.

Thanks for maintaining this cool project !!!

learn-sys16 avatar Nov 30 '24 17:11 learn-sys16

This is something we need for dhcpcd-11 when manager mode is the only option for sure.

rsmarples avatar Dec 09 '24 11:12 rsmarples