ops/nixos: try to make some things more robust by trying Harder
This commit is contained in:
parent
7a64bf626c
commit
adc5d0fb05
3 changed files with 13 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
|||
53 # DNS
|
||||
];
|
||||
|
||||
systemd.services.coredns.unitConfig.StartLimitIntervalSec = "0";
|
||||
services.coredns = {
|
||||
enable = true;
|
||||
config = let
|
||||
|
|
|
@ -1203,10 +1203,18 @@ in {
|
|||
virtualHosts."192.168.1.1".root = "/srv/tftp";
|
||||
};
|
||||
|
||||
systemd.services.kea-dhcp4-server.serviceConfig = {
|
||||
Restart = "always";
|
||||
};
|
||||
services.kea = {
|
||||
dhcp4.enable = true;
|
||||
dhcp4.settings = {
|
||||
interfaces-config.interfaces = ["br-internal" "vl-eduroam"];
|
||||
interfaces-config = {
|
||||
interfaces = ["br-internal" "vl-eduroam"];
|
||||
service-sockets-require-all = true;
|
||||
service-sockets-max-retries = 20; # retry up to 20 times
|
||||
service-sockets-retry-wait-time = 5000; # 5 seconds
|
||||
};
|
||||
lease-database = {
|
||||
type = "memfile";
|
||||
persist = true;
|
||||
|
|
|
@ -118,6 +118,9 @@
|
|||
Group = "fr24feed-cfg";
|
||||
ConfigurationDirectory = "fr24feed";
|
||||
ConfigurationDirectoryMode = "0750";
|
||||
|
||||
Restart = "on-failure";
|
||||
RestartMode = "direct";
|
||||
};
|
||||
};
|
||||
systemd.services.fr24feed = {
|
||||
|
|
Loading…
Reference in a new issue