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