nixos-module/container/dhcp-server: just set Restart for kea-*-server.service

This commit is contained in:
Astro 2023-11-13 23:14:16 +01:00
parent c40997bacc
commit a9bebbe3a0
1 changed files with 13 additions and 5 deletions

View File

@ -277,9 +277,17 @@ in
};
};
# Hotfix weird ddns service behaviour
systemd.services.kea-dhcp-ddns-server.after = [
"systemd.services.kea-dhcp4-server.service"
"systemd.services.kea-dhcp6-server.service"
];
# Increase reliablity
# (mostly for kea-dhcp-ddns-server.service)
systemd.services =
let
restartService.serviceConfig = {
RestartSec = 4;
Restart = "always";
};
in {
kea-dhcp4-server = restartService;
kea-dhcp6-server = restartService;
kea-dhcp-ddns-server = restartService;
};
}