nixos/rspamd: Preserve runtime directory when using socket activation
commit458bcc8f7a95874afc21cc58ddef6e87d9924d5a
authorBrian Olsen <brian@maven-group.org>
dateMon 26 Feb 2018, 23:57 (9 years ago)
parentc291103
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 };