add restart to dnsmasq

This commit is contained in:
2026-05-02 16:53:07 -05:00
parent aef547aefc
commit 31683a89ed
+7
View File
@@ -41,6 +41,13 @@ in {
}; };
}; };
systemd.services.dnsmasq.serviceConfig = {
Restart = "on-failure";
RestartSec = "5s";
StartLimitIntervalSec = 60;
StartLimitBurst = 10;
};
# open firewall # open firewall
networking.firewall.allowedTCPPorts = [ cfg.port ]; networking.firewall.allowedTCPPorts = [ cfg.port ];
networking.firewall.allowedUDPPorts = [ cfg.port ]; networking.firewall.allowedUDPPorts = [ cfg.port ];