kea fails to start after system reboot. Unable to open '/var/run/kea/'
Debian 11.3 kea 2.0.2
kea fails to start after reboot: kea-dhcp4: Fatal error during start up: Unable to open PID file '/var/run/kea/kea-dhcp4.kea-dhcp4.pid' for write
I think what is happening is that "/var/run/kea" is created at install, but after a system reboot, the system cleans the /var/run/ directory, removing the /var/run/kea directory. So when kea starts again, it fails.
need to mkdir /var/run/kea first to make it start.
EDIT: I have just found a "create_lockfile_dir" routine in the /etc/init.d/isc-kea-dhcp4-server startup script, with KEA_LOCKFILE_DIR=/run/lock/kea/ changing this to KEA_LOCKFILE_DIR=/run/kea/ seems to fix the problem.
Edited by mike ring