git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #35690 from griff/rspamd-socketruntime

nixos/rspamd: Preserve runtime directory when using socket activation

commit2dc1d75eb45eb92779291a6b194af230329d7c8f authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 27 Sep 2018, 14:09 (8 years ago) parent2f2876b458bcc8
1 file changed+1
nixos/modules/services/mail/rspamd.nix+1
nixos/modules/services/mail/rspamd.nix+1
@@ -308,6 +308,7 @@ in
308308 ExecStart = "${pkgs.rspamd}/bin/rspamd ${optionalString cfg.debug "-d"} --user=${cfg.user} --group=${cfg.group} --pid=/run/rspamd.pid -c ${rspamdConfFile} -f";
309309 Restart = "always";
310310 RuntimeDirectory = "rspamd";
311+ RuntimeDirectoryPreserve = mkIf cfg.socketActivation true;
311312 PrivateTmp = true;
312313 Sockets = mkIf cfg.socketActivation (concatStringsSep " " allSocketNames);
313314 };