#!/bin/sh # description: the spamassassin daemon case "$1" in start) echo "Starting the spamassassin daemon (spamd)..." /usr/local/bin/spamd -d -r /var/run/spamd.pid ;; stop) echo "Stopping the spamassassin daemon (spamd)..." kill `cat /var/run/spamd.pid` ;; restart) echo "Restarting the spamassassin daemon (spamd)..." spamdctl stop spamdctl start ;; help) cat <