From f8557081cd262363187cabaa9d6001328ea8f8fd Mon Sep 17 00:00:00 2001 From: Nick Bebout Date: Mon, 12 Sep 2011 19:53:39 -0500 Subject: [PATCH] Fix systemd service file --- spamassassin.service | 10 ++++++---- 1 file 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 -