stalwart-mail: remove upstream systemd service

This commit is contained in:
dish
2025-11-09 17:48:19 -05:00
parent 80f819c0ec
commit b5178ff139
+10 -5
View File
@@ -154,8 +154,8 @@ in
];
systemd = {
packages = [ cfg.package ];
services.stalwart-mail = {
description = "Stalwart Mail Server";
wantedBy = [ "multi-user.target" ];
after = [
"local-fs.target"
@@ -173,15 +173,21 @@ in
'';
serviceConfig = {
# Upstream service config
Type = "simple";
LimitNOFILE = 65536;
KillMode = "process";
KillSignal = "SIGINT";
Restart = "on-failure";
RestartSec = 5;
SyslogIdentifier = "stalwart-mail";
ExecStart = [
""
"${lib.getExe cfg.package} --config=${configFile}"
];
LoadCredential = lib.mapAttrsToList (key: value: "${key}:${value}") cfg.credentials;
StandardOutput = "journal";
StandardError = "journal";
ReadWritePaths = [
cfg.dataDir
];
@@ -228,7 +234,6 @@ in
UMask = "0077";
};
unitConfig.ConditionPathExists = [
""
"${configFile}"
];
};