spamass-milt-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spamass-milter Redhat Service


From: Jason Granat
Subject: Re: Spamass-milter Redhat Service
Date: Tue, 03 Jun 2003 15:51:15 -0700

Nevermind.  I found the problem.  On my system spamass-milter is in /usr/local/sbin but that path was not specified in the script....  Working now!!!

Thanks all for the help!!!

Jason Granat wrote:

What does your /etc/sysconfig/spamass-milter look like?

Thomas Cameron wrote:

OK, out of desperation, here is my startup script.  Diff it against yours and see if there is a problem: #!/bin/sh
#
# $Id: spamass-milter-redhat.rc,v 1.2 2002/08/19 20:39:42 dnelson Exp $
#
# spamass-milter This script starts and stops the spamass-milter daemon
#
# chkconfig: 2345 80 30
#
# description: spamass-milter is a daemon which hooks into sendmail and routes
#              email messages to spamassassin
# processname: spamass-milter
 

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

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

# Local spamass-milter config
SM_SOCKET=/var/run/spamass.sock
SM_EXTRA_FLAGS=
[ -x /etc/sysconfig/spamass-milter ] && . /etc/sysconfig/spamass-milter

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

[ -x /usr/sbin/spamass-milter ] || exit 0
PATH=$PATH:/usr/bin:/usr/local/bin

RETVAL=0

start() {
        echo -n "Starting spamass-milter: "
        daemon spamass-milter -p ${SM_SOCKET} -f ${SM_EXTRA_FLAGS}

        RETVAL=$?
        echo
test $RETVAL -eq 0 && touch /var/lock/subsys/spamass-milter
return $RETVAL
}

stop() {
        echo -n "Shutting down spamass-milter: "
        killproc spamass-milter
        RETVAL=$?
        echo
test $RETVAL -eq 0 && rm -f /var/lock/subsys/spamass-milter
}

restart() {
stop
start
}

# See how we were called.
case "$1" in
  start)
        # Start daemon.
start
        ;;
  stop)
        # Stop daemon.
stop
        ;;
  restart|reload)
restart
        ;;
  condrestart)
test -f /var/lock/subsys/spamass-milter && $0 restart || :
        ;;
  status)
        status spamass-milter
        ;;
  *)
        echo "Usage: $0 {start|stop|reload|restart|condrestart|status}"
        exit 1
esac

exit $?


_______________________________________________ Spamass-milt-list mailing list address@hidden http://mail.nongnu.org/mailman/listinfo/spamass-milt-list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]