From 04f8683f9944821e81a8444a8959d0bdc3f39e4b Mon Sep 17 00:00:00 2001 From: atlas Date: Sun, 1 Nov 2026 10:55:14 +0100 Subject: [PATCH] force tuwunel's start limit off over the upstream value --- nix/host-modules/hive-matrix.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nix/host-modules/hive-matrix.nix b/nix/host-modules/hive-matrix.nix index 6cb59955..dbec19be 100644 --- a/nix/host-modules/hive-matrix.nix +++ b/nix/host-modules/hive-matrix.nix @@ -1048,9 +1048,10 @@ in # without the registration. ++ lib.optional ctlActive "${swarmAppserviceCredentialId}:${swarmAppserviceRuntimeDir}/swarm.yaml"; - # Upstream's `Restart=on-failure` retries a start that failed for - # want of the registration; a start limit would end the retries. - systemd.services.tuwunel.startLimitIntervalSec = lib.mkIf ctlActive 0; + # Upstream retries with `Restart=on-failure` every 10 s under a start + # limit of 5 in 60 s, which would end the retries for want of the + # registration. + systemd.services.tuwunel.startLimitIntervalSec = lib.mkIf ctlActive (lib.mkForce 0); # The swarm registration, fetched from the store and rendered onto # the tmpfs before the homeserver loads it. A store that does not