From aafc09c2e86d02b8703cfca4e5c173ce9bb660b5 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 15 Feb 2024 07:40:44 +0530 Subject: 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. --- hosts/lia/modules/sshfwd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hosts') 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"; }; -- cgit v1.2.3