1 diff -urN Mail-SpamAssassin-2.31.old/spamd/pld-rc-script.sh Mail-SpamAssassin-2.31/spamd/pld-rc-script.sh
2 --- Mail-SpamAssassin-2.31.old/spamd/pld-rc-script.sh Thu Jan 1 01:00:00 1970
3 +++ Mail-SpamAssassin-2.31/spamd/pld-rc-script.sh Sat Jul 20 14:17:33 2002
7 +# spamassassin This script starts and stops the spamd daemon
9 +# chkconfig: 2345 80 30
11 +# description: spamd is a daemon process which uses SpamAssassin to check
12 +# email messages for SPAM. It is normally called by spamc
14 +# processname: spamassassin
15 +# pidfile: /var/run/spamassassin.pid
17 +# Source function library.
18 +. /etc/rc.d/init.d/functions
20 +# Source networking configuration.
21 +. /etc/sysconfig/network
23 +# Source configureation.
24 +if [ -f /etc/sysconfig/spamassassin ] ; then
25 + . /etc/sysconfig/spamassassin
28 +# Check that networking is up.
29 +if is_no "${NETWORKING}"; then
30 + msg_Network_Down SpamAssassin
34 +# See how we were called.
38 + if [ ! -f /var/lock/subsys/spamd ]; then
39 + msg_starting SpamAssassin
40 + daemon spamd -d -c -a
42 + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/spamd
44 + msg_Not_Running SpamAssassin
49 + if [ -f /var/lock/subsys/spamd ]; then
50 + echo -n "Shutting down spamd: "
53 + rm -f /var/lock/subsys/spamd
55 + msg_Already_Running SpamAssassin
66 + msg_Usage "$0 {start|stop|restart|status}"