dhcpcd occasionally takes 20 seconds to stop, slowing reboot #16036
Comments
|
dhcpcd does not react to SIGTERM apparently. please report to your dhcpcd downstream. |
|
I don't fully understand the problem yet. In /etc/systemd/system/dhcpcd.service I find:
This command works reliably when I run it from a terminal. Also, sometimes the following command executes quickly as well, as I showed above:
Are you suggesting that in addition to "ExecStop=/usr/bin/dhcpcd -x", Systemd is sending a SIGTERM on its own initiative? I checked that dhcpcd doesn't exit on SIGTERM, but I'm not sure how or why that became a standard requirement for daemons. Here is the unit file in case it helps:
|
|
dhcpcd.service and dhcpcd@.service are separate units. You are looking at the wrong one. This is not a systemd bug. Please seek support from the Arch people. |
|
@archenemies systemd will send SIGTERM to the remaining processes when there are any left-over processes after the ExecStop= command completed. It appers dhcpd doesn't react to neither "dhcpcd -x" nor to SIGTERM. Which is something you need to report to the dhcpcd package. (Maybe you have some hook scripts defined that dhcpcd waits on and block shutdown?) Either way, this is unlikely to be a systemd problem. please report to your downstream distro, in the dhcpcd package. |
|
I understood your repeated request that I should report it upstream or downstream, I'm just trying to understand what I should report. According to my experiments, there is only a problem when I think the only customization I have is this:
I will send an email to the Dhcpcd mailing list. |
|
This seems to be an Arch + systemd only issue. In a nutshell, for dhcpcd-9.0 there is a chroot setup script which mount --bind /dev, /dev/rlog, /run, /proc and /sys in the chroot so that the chrooted process could access the necessary. I have no explanation as to why this is an issue at all - AFAIK it only affects systemd on Arch. |
|
@rsmarples Thank you Roy. After upgrading dhcpcd I verified that the problem is gone. |
|
Ah, if the problem is gone, let's close it here then. |
systemd version the issue has been seen with
Used distribution
Expected behaviour you didn't see
Unexpected behaviour you saw
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: