From db9c3b880c860298f78723abdced767f1f3c8cf1 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sat, 5 Oct 2024 21:01:18 +0200 Subject: [PATCH] add RestartMode=direct --- modules/clightning-rest.nix | 1 + modules/rtl.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/clightning-rest.nix b/modules/clightning-rest.nix index c15ecdb2f..e8b543780 100644 --- a/modules/clightning-rest.nix +++ b/modules/clightning-rest.nix @@ -96,6 +96,7 @@ in { User = clightning.user; Restart = "on-failure"; RestartSec = "10s"; + RestartMode = "direct"; ReadWritePaths = [ cfg.dataDir ]; inherit (nbLib.allowNetlink) RestrictAddressFamilies; } // nbLib.allowedIPAddresses cfg.tor.enforce diff --git a/modules/rtl.nix b/modules/rtl.nix index 66c917948..794da8a30 100644 --- a/modules/rtl.nix +++ b/modules/rtl.nix @@ -209,6 +209,7 @@ in { User = cfg.user; Restart = "on-failure"; RestartSec = "10s"; + RestartMode = "direct"; ReadWritePaths = [ cfg.dataDir ]; } // nbLib.allowedIPAddresses cfg.tor.enforce // nbLib.nodejs;