From 805fbd610bcba37288db449b365f498935c644c4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 11 Jul 2022 10:29:37 +0200 Subject: ... --- modules/postfix-mta-sts-resolver.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/postfix-mta-sts-resolver.nix b/modules/postfix-mta-sts-resolver.nix index 52439659..86804758 100644 --- a/modules/postfix-mta-sts-resolver.nix +++ b/modules/postfix-mta-sts-resolver.nix @@ -53,12 +53,18 @@ in { after = mkIf cfg.redis [ "redis-postfix-mta-sts-resolver.service" ]; serviceConfig = { + Type = "notify"; ExecStart = "${pkgs.postfix-mta-sts-resolver}/bin/mta-sts-daemon -v ${cfg.loglevel} -c ${pkgs.writeText "mta-sts-daemon.yml" (generators.toYAML {} cfg.settings)}"; - SupplementaryGroups = mkIf cfg.redis config.services.redis.servers.postfix-mta-sts-resolver.user; + Restart = "always"; + KillMode = "process"; + TimeoutStartSec = 10; + TimeoutStopSec = 30; + RuntimeDirectory = "postfix-mta-sts-resolver"; User = "postfix-mta-sts-resolver"; Group = "postfix-mta-sts-resolver"; + SupplementaryGroups = mkIf cfg.redis config.services.redis.servers.postfix-mta-sts-resolver.user; RemoveIPC = true; PrivateTmp = true; -- cgit v1.2.3