We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eddf6d6 commit 9df38e9Copy full SHA for 9df38e9
flake.nix
@@ -111,9 +111,16 @@
111
after = ["tailscaled.service"];
112
wants = ["tailscaled.service"];
113
wantedBy = ["multi-user.target"];
114
+ # Never give up on trying to restart
115
+ startLimitIntervalSec = 0;
116
serviceConfig = {
117
Type = "exec";
- Restart = "on-failure";
118
+ Restart = "always";
119
+ # Restart at increasing intervals to avoid things like EC2
120
+ # metadata service rate limits
121
+ RestartSec = 1;
122
+ RestartSteps = 30;
123
+ RestartMaxDelaySec = 60;
124
ExecStart = lib.escapeShellArgs (
125
[ "${cfg.package}/bin/tailscale-manager" configFile
126
"--tailscale=${config.services.tailscale.package}/bin/tailscale"
0 commit comments