summaryrefslogtreecommitdiff
path: root/spamassassin-courier/spamassassin-update.service
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-04 11:52:12 +0100
committerErich Eckner <git@eckner.net>2019-02-04 11:52:12 +0100
commitad88a7a37f65652f56895d0e5944854d489813c3 (patch)
tree8ca4341a9c719a97c5deb8bc3d33a41a6fc55439 /spamassassin-courier/spamassassin-update.service
parent31a2ea006435dcd7f80ffd3609ef26ac3944c2e7 (diff)
downloadarchlinuxewe-ad88a7a37f65652f56895d0e5944854d489813c3.tar.xz
spamassassin-courier: include service files
Diffstat (limited to 'spamassassin-courier/spamassassin-update.service')
-rw-r--r--spamassassin-courier/spamassassin-update.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/spamassassin-courier/spamassassin-update.service b/spamassassin-courier/spamassassin-update.service
new file mode 100644
index 000000000..1d944a2da
--- /dev/null
+++ b/spamassassin-courier/spamassassin-update.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=spamassassin housekeeping stuff
+
+[Service]
+#User=spamd
+#Group=spamd
+Type=oneshot
+
+# remove --allowplugins, if you do not want plugin updates from SA.
+ExecStart=/bin/sh -c '/usr/bin/vendor_perl/sa-update --allowplugins && {\
+ /usr/bin/vendor_perl/sa-compile --quiet;\
+ /usr/bin/systemctl -q --no-block try-restart spamassassin.service; }'
+SuccessExitStatus=1
+
+# uncomment the following ExecStart line to train SA's bayes filter
+# and specify the path to the mailbox that contains spam email(s)
+#ExecStart=/usr/bin/vendor_perl/sa-learn --spam <path_to_your_spam_mailbox>