1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00

nixos/rspamd: Preserve runtime directory when using socket activation

This commit is contained in:
Brian Olsen 2018-02-26 23:57:44 +01:00
parent c2911034c3
commit 458bcc8f7a
No known key found for this signature in database
GPG key ID: 029DD8E8B95882E8

View file

@ -308,6 +308,7 @@ in
ExecStart = "${pkgs.rspamd}/bin/rspamd ${optionalString cfg.debug "-d"} --user=${cfg.user} --group=${cfg.group} --pid=/run/rspamd.pid -c ${rspamdConfFile} -f";
Restart = "always";
RuntimeDirectory = "rspamd";
RuntimeDirectoryPreserve = mkIf cfg.socketActivation true;
PrivateTmp = true;
Sockets = mkIf cfg.socketActivation (concatStringsSep " " allSocketNames);
};