summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hambüchen <mail@nh2.me>2022-05-02 16:45:44 +0200
committerGitHub <noreply@github.com>2022-05-02 16:45:44 +0200
commit73135fb85dea9c796207ac1aba95b27c870263d6 (patch)
tree87afa0a438791efcab28e9dc5f7716ab8130f7c5
parentMerge pull request #171197 from aaronjheng/matterircd (diff)
downloadnixpkgs-origin/nebula-always-restart.tar.gz
nixos/nebula: Always restartorigin/nebula-always-restart
Without this, if the network goes down for a while, systemd will give up after 5 restarts: Scheduled restart job, restart counter is at 5. Stopped Nebula VPN service for myvpn. nebula@myvpn.service: Start request repeated too quickly. Failed with result 'exit-code'. Failed to start Nebula VPN service for myvpn. Most network services need this, but for VPNs it's extra important.
-rw-r--r--nixos/modules/services/networking/nebula.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/nebula.nix b/nixos/modules/services/networking/nebula.nix
index de4439415cf6..c83cd9d521c6 100644
--- a/nixos/modules/services/networking/nebula.nix
+++ b/nixos/modules/services/networking/nebula.nix
@@ -192,6 +192,7 @@ in
Group = networkId;
})
];
+ unitConfig.StartLimitIntervalSec = 0; # ensure Restart=always is always honoured (networks can go down for arbitrarily long)
};
}) enabledNetworks);