Fix systemd service file

This commit is contained in:
Nick Bebout 2011-09-12 19:53:39 -05:00
parent 2a18fc3715
commit f8557081cd

View File

@ -1,13 +1,15 @@
[Unit] [Unit]
Description=Spamassassin daemon Description=Spamassassin daemon
After=syslog.target network.target
[Service] [Service]
EnvironmentFile=/etc/sysconfig/spamassassin Type=forking
PIDFile=/var/run/spamd.pid
EnvironmentFile=-/etc/sysconfig/spamassassin
ExecStartPre=-/sbin/portrelease spamd ExecStartPre=-/sbin/portrelease spamd
ExecStart=/usr/bin/spamd ${SPAMDOPTIONS} ExecStart=/usr/bin/spamd $SPAMDOPTIONS
Restart=always
StandardOutput=syslog StandardOutput=syslog
StandardError=syslog
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target