#!/bin/sh # chkconfig: 3 80 30 # description: SpamAssassin Daemon DAEMON=/usr/bin/spamd OPTIONS="-u spam -d -H /home/postfix" case "$1" in start) echo -n "Starting SpamAssassin daemon: " $DAEMON $OPTIONS ;; stop) echo -n "Shutting down SpamAssassin daemon: " killall spamd ;; restart) $0 stop sleep 2 $0 start ;; *) echo -n "Usage: $0 {start|stop|restart}" exit 1 esac exit 0