From d241240ba490744a8d17c7a48cc169b8214404c3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 24 Jan 2013 18:34:13 +0100 Subject: [PATCH] spamassassin: convert module to systemd --- modules/services/mail/spamassassin.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/services/mail/spamassassin.nix b/modules/services/mail/spamassassin.nix index d4dbe8ddbd04..d0029c1256c1 100644 --- a/modules/services/mail/spamassassin.nix +++ b/modules/services/mail/spamassassin.nix @@ -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"; };