nixos/unbound: add restart (#41885)

This commit is contained in:
volth 2018-06-12 12:29:25 +00:00 committed by xeji
parent dbdad4b44b
commit b25a2c9614

View File

@ -60,7 +60,7 @@ in
};
interfaces = mkOption {
default = [ "127.0.0.1" "::1" ];
default = [ "127.0.0.1" ] ++ optional config.networking.enableIPv6 "::1";
type = types.listOf types.str;
description = "What addresses the server should listen on.";
};
@ -126,6 +126,8 @@ in
ProtectSystem = true;
ProtectHome = true;
PrivateDevices = true;
Restart = "always";
RestartSec = "5s";
};
};