Skip to content

dhcpcd not responding to sigterm during reboot or shutdown

DISREGARD, FIXED (see edit 2)

A few days ago I made a post here about my system not rebooting or shutting down. It turns out I just wasn't patient enough. The system tried to send a sigterm to dhcpcd, and waits 1 minute 30 seconds, and then it has to send a sigkill. I can't figure out why it doesn't respond to the sigterm. Here are the relevant shutdown logs from journalctl:

May 19 19:06:21 Walter systemd[1]: Stopping dhcpcd on enp2s0... May 19 19:06:21 Walter systemd[1]: dbus.service: Succeeded. May 19 19:06:21 Walter systemd[1]: Stopped D-Bus System Message Bus. May 19 19:06:21 Walter audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit> May 19 19:06:21 Walter dhcpcd[675941]: sending commands to dhcpcd process May 19 19:06:21 Walter dhcpcd[675941]: sending commands to dhcpcd process May 19 19:06:21 Walter dhcpcd[557142]: control command: /usr/bin/dhcpcd -x enp2s0 May 19 19:06:21 Walter dhcpcd[557142]: enp2s0: removing interface May 19 19:06:21 Walter dhcpcd[557143]: process 557143 unexpectedly terminating on signal 15 May 19 19:07:51 Walter systemd[1]: dhcpcd@enp2s0.service: State 'stop-sigterm' timed out. Killing. May 19 19:07:51 Walter systemd[1]: dhcpcd@enp2s0.service: Killing process 557142 (dhcpcd) with sig> May 19 19:07:51 Walter systemd[1]: dhcpcd@enp2s0.service: Main process exited, code=killed, status> May 19 19:07:51 Walter systemd[1]: dhcpcd@enp2s0.service: Failed with result 'timeout'. May 19 19:07:51 Walter audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit> May 19 19:07:51 Walter systemd[1]: Stopped dhcpcd on enp2s0.

Sorry if the formatting is rough, I'm on my phone atm, had to grab the logs via SSH. If anyone knows why dhcpcd is doing this I'd really appreciate it. The only change I've done is I write protected /etc/resolv.conf. Dhcpcd kept grabbing a local DNS from my router, and so when I use my VPN it couldn't resolve anything. Had to replace the DNS with Google DNS and write protect the file so that dhcpcd wouldn't replace it every time the service started.

EDIT: Fixed it. Don't exactly know how, but I reinstalled dhcpcd, then made /etc/resolv.conf writable again, and simply put my info in resolv.conf.head. One of those seems to have done it.

EDIT 2: Nvm, problem came back, thanks to a prior reddit post I found the root issue. I had used the single interface service (dhcpcd@enp2s0.service), which seems to cause issues, despite it used to being the recommended method. By disabling it, and enabling dhcpcd.service the problem seems to have gone away.

Edited 20 May 2020. We only hold this version.

3 points1 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
3 · 100% up
Kind
Text
ID
gn090p

Author

18
posts
73
comments
7
media
View profile

1 comment

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.