Skip to content

Raspbian dropping off the network potential workaround

wiedehopf edited this page Oct 3, 2024 · 4 revisions

This no longer applies in current Raspbian versions

There are several known issues that can cause dhcpcd to segfault. For whatever reason that will never make sense to me the service isn't configured to automatically restart after a segfault.

Let's fix that, just copy the following code block as one into your console:

sudo mkdir -p /etc/systemd/system/dhcpcd.service.d
sudo tee /etc/systemd/system/dhcpcd.service.d/restart.conf <<"EOF"
[Service]
Restart=always
RestartSec=5s
StartLimitInterval=1
StartLimitBurst=100
EOF
sudo systemctl daemon-reload
sudo systemctl restart dhcpcd
Clone this wiki locally