Force DHCP server to bind sockets
and add restart policy to systemd service
This commit is contained in:
parent
8bd6ffbc7a
commit
abc8263e02
1 changed files with 6 additions and 0 deletions
|
|
@ -44,11 +44,17 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.kea-dhcp4-server.serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
RestartSec = 3;
|
||||
};
|
||||
|
||||
services.kea.dhcp4 = {
|
||||
enable = true;
|
||||
settings = {
|
||||
interfaces-config = {
|
||||
interfaces = [ cfg.interface ];
|
||||
service-sockets-require-all = true;
|
||||
};
|
||||
option-def = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue