summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-02-15 07:40:44 +0530
committersinanmohd <sinan@sinanmohd.com>2024-02-15 07:40:44 +0530
commitaafc09c2e86d02b8703cfca4e5c173ce9bb660b5 (patch)
tree8ea5f77fd8efe8e5b6cf2c2b17a66c90428be342
parentde208a0832a167e1d6afb64dce6fcc47df428460 (diff)
hosts/lia/sshfwd/mkFwdSrv: bump RestartSec
The default limit is to allow 5 restarts in a 10sec period. If a service goes over that threshold due to the Restart= option, it will not attempt to restart any further. The rates are configured with the StartLimitIntervalSec= and StartLimitBurst= options and the Restart= option controls when SystemD tries to restart a service.
-rw-r--r--hosts/lia/modules/sshfwd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/lia/modules/sshfwd.nix b/hosts/lia/modules/sshfwd.nix
index b6f428f..74e62da 100644
--- a/hosts/lia/modules/sshfwd.nix
+++ b/hosts/lia/modules/sshfwd.nix
@@ -25,7 +25,7 @@
-i ${key}
'';
- RestartSec = 1;
+ RestartSec = 3;
Restart = "always";
};