spamassassin: convert module to systemd

This commit is contained in:
Peter Simons 2013-01-24 18:34:13 +01:00
parent 859d75186a
commit d241240ba4

View File

@ -52,7 +52,10 @@ in
jobs.spamd = {
description = "Spam Assassin Server";
startOn = "started networking and filesystem";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
environment.TZ = config.time.timeZone;
exec = "${pkgs.spamassassin}/bin/spamd ${optionalString cfg.debug "-D"} --username=spamd --groupname=spamd --nouser-config --virtual-config-dir=/var/lib/spamassassin/user-%u --allow-tell --pidfile=/var/run/spamd.pid";
};