From f857e751b5445b7f23ec213dccc8bfc0a8916d1d Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Thu, 21 Mar 2024 20:40:38 +0000 Subject: [PATCH] nixos/home/routing-common: Restart kea on failure --- nixos/boxes/home/routing-common/kea.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/home/routing-common/kea.nix b/nixos/boxes/home/routing-common/kea.nix index fd5b896..f63f952 100644 --- a/nixos/boxes/home/routing-common/kea.nix +++ b/nixos/boxes/home/routing-common/kea.nix @@ -26,7 +26,11 @@ in }; systemd.services = { - kea-dhcp4-server.serviceConfig.DynamicUser = mkForce false; + kea-dhcp4-server.serviceConfig = { + # Sometimes interfaces might not be ready in time and Kea doesn't like that + Restart = "on-failure"; + DynamicUser = mkForce false; + }; kea-dhcp-ddns-server.serviceConfig.DynamicUser = mkForce false; };