[Unit] Description=Spamassassin daemon After=syslog.target network.target [Service] Type=forking EnvironmentFile=-/etc/sysconfig/spamassassin #PIDFile=$SPAMD_PID PIDFile=/var/run/spamd.pid ExecStartPre=-/sbin/portrelease spamd ExecStart=/usr/bin/spamd --pidfile $SPAMD_PID $SPAMDOPTIONS StandardOutput=syslog StandardError=syslog Restart=always TimeoutStartSec=120s [Install] WantedBy=multi-user.target