spamassassin: add option for running the spamd daemon in debug mode
This commit is contained in:
parent
9d83b8897b
commit
bcb8038726
@ -21,6 +21,11 @@ in
|
|||||||
description = "Whether to run the SpamAssassin daemon.";
|
description = "Whether to run the SpamAssassin daemon.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
debug = mkOption {
|
||||||
|
default = false;
|
||||||
|
description = "Whether to run the SpamAssassin daemon in debug mode.";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -43,7 +48,7 @@ in
|
|||||||
description = "Spam Assassin Server";
|
description = "Spam Assassin Server";
|
||||||
startOn = "started networking and filesystem";
|
startOn = "started networking and filesystem";
|
||||||
environment.TZ = config.time.timeZone;
|
environment.TZ = config.time.timeZone;
|
||||||
exec = "${pkgs.spamassassin}/bin/spamd -D --username=spamd --pidfile=/var/run/spamd.pid";
|
exec = "${pkgs.spamassassin}/bin/spamd ${optionalString cfg.debug "-D"} --username=spamd --pidfile=/var/run/spamd.pid";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user