[spamassassin/f14: 1/2] Fix systemd service file
Nick Bebout
nb at fedoraproject.org
Tue Sep 13 00:54:40 UTC 2011
commit f8557081cd262363187cabaa9d6001328ea8f8fd
Author: Nick Bebout <nb at fedoraproject.org>
Date: Mon Sep 12 19:53:39 2011 -0500
Fix systemd service file
spamassassin.service | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/spamassassin.service b/spamassassin.service
index 4f80e49..6bce278 100644
--- a/spamassassin.service
+++ b/spamassassin.service
@@ -1,13 +1,15 @@
[Unit]
Description=Spamassassin daemon
+After=syslog.target network.target
[Service]
-EnvironmentFile=/etc/sysconfig/spamassassin
+Type=forking
+PIDFile=/var/run/spamd.pid
+EnvironmentFile=-/etc/sysconfig/spamassassin
ExecStartPre=-/sbin/portrelease spamd
-ExecStart=/usr/bin/spamd ${SPAMDOPTIONS}
-Restart=always
+ExecStart=/usr/bin/spamd $SPAMDOPTIONS
StandardOutput=syslog
+StandardError=syslog
[Install]
WantedBy=multi-user.target
-
More information about the scm-commits
mailing list