Hi,

I have a setup with 2 redundant (primary / secondary) DHCPd servers where both of them crash occasionally. This is a separate bug, but this solution was useful in restarting the daemons after crashing and leaving the pid files behind.

To automatically restart the daemons after this modification is introduced, edit the systemd service description with

systemctl edit isc-dhcp-server.service

and add something like

[Service]
Type=forking
PIDFile=dhcpd.pid
Restart=on-failure
StartLimitIntervalSec=60s
StartLimitBurst=8
RestartSec=5s

in the appropriate section. Then enable this configuration, and systemd will be able to restart DHCPd after they crash.

Reply via email to