10 # Source function library
11 . /etc/rc.d/init.d/functions
14 [ -f /etc/sysconfig/dspam ] && . /etc/sysconfig/dspam
17 # See how we were called.
20 # Check if the service is already running?
21 if [ ! -f /var/lock/subsys/dspam ]; then
23 daemon --fork --user mail /usr/bin/dspam --daemon
25 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dspam
27 msg_already_running dspam
31 if [ -f /var/lock/subsys/dspam ]; then
34 rm -f /var/run/dspam.pid /var/lock/subsys/dspam >/dev/null 2>&1
49 if [ -f /var/lock/subsys/dspam ]; then
54 msg_not_running dspam >&2
59 msg_usage "$0 {start|stop|init|restart|reload|force-reload|status}"