add restart to dnsmasq
This commit is contained in:
@@ -41,6 +41,13 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services.dnsmasq.serviceConfig = {
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
StartLimitIntervalSec = 60;
|
||||
StartLimitBurst = 10;
|
||||
};
|
||||
|
||||
# open firewall
|
||||
networking.firewall.allowedTCPPorts = [ cfg.port ];
|
||||
networking.firewall.allowedUDPPorts = [ cfg.port ];
|
||||
|
||||
Reference in New Issue
Block a user