spamassassin: call daemon with complete path

wip/yesman
Peter Simons 12 years ago
parent d5d8acfacd
commit d13a3c741a
  1. 4
      modules/services/mail/spamassassin.nix

@ -30,14 +30,14 @@ in
config = mkIf cfg.enable {
# This makes comfortable for users to run 'spamassassin'.
# Allow users to run 'spamc'.
environment.systemPackages = [ pkgs.spamassassin ];
jobs.spamd = {
description = "Spam Assassin Server";
startOn = "started networking and filesystem";
environment.TZ = config.time.timeZone;
exec = "spamd -C /etc/spamassassin/init.pre --siteconfigpath=/etc/spamassassin --debug --pidfile=/var/run/spamd.pid";
exec = "${pkgs.spamassassin}/bin/spamd -C /etc/spamassassin/init.pre --siteconfigpath=/etc/spamassassin --debug --pidfile=/var/run/spamd.pid";
};
};

Loading…
Cancel
Save