Setup my cobalt raq4 with redhat 6.2 and newest release of spamassassin.
Everything works great. Except the startup script. It starts the application
fine. However stopping it does not work. I modified it to just kill the
process dead but that is not ideal. Anyone have any insight?

The original script had killproc spamd but did not work. It gave this error.
Shutting down spamd: ERROR!

I replaced with killall and it kills it of course dead. Any ideas?
Here is my modified script

#
# chkconfig: 2345 80 30
#
# description: spamd is a daemon process which uses SpamAssassin to check
#              email messages for SPAM.  It is normally called by spamc
#              from a MDA.

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/bin/spamd -o -f /usr/local/bin/spamd ] || exit 0
PATH=$PATH:/usr/bin:/usr/local/bin

# See how we were called.
case "$1" in
  start)
        # Start daemon.
        echo -n "Starting spamd: "
        daemon /usr/bin/spamd -d -c -a
        echo
        touch /var/lock/subsys/spamd
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down spamd: "
        killall spamd
        rm -f /var/lock/subsys/spamd
        echo
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  status)
        status spamd
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|status}"
        exit 1
esac

exit 0



_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to