From 7cd7381b3d19f7f17d48d6c9a84c44a4ec0b3802 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 12 Apr 2025 16:12:36 +0200 Subject: modules/stalwart-mail: Don't restart the systemd service Restarting might be useful, if stalwart is actually _running_ in prod, but currently the constant restart makes it very difficult to debug (or even stop) the service. --- modules/by-name/st/stalwart-mail/module.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/by-name/st/stalwart-mail/module.nix') diff --git a/modules/by-name/st/stalwart-mail/module.nix b/modules/by-name/st/stalwart-mail/module.nix index f65ba38..cc4acc9 100644 --- a/modules/by-name/st/stalwart-mail/module.nix +++ b/modules/by-name/st/stalwart-mail/module.nix @@ -185,7 +185,6 @@ in { # However, this decision could obviously be reversed in the future. <2025-02-08> enable = false; inherit (cfg) package; - # dataDir = cfg.dataDirectory; }; nginx.virtualHosts."${cfg.fqdn}" = { @@ -345,8 +344,7 @@ in { ${lib.getExe cfg.package} --config="$CACHE_DIRECTORY/mutable_config_file.toml" ''; - Restart = "on-failure"; - RestartSec = 5; + Restart = "no"; KillMode = "process"; KillSignal = "SIGINT"; -- cgit 1.4.1