Greg Kopp wrote:
Can someone paste me an "ideal" spamd startup script for RH 9.0? I am using qmail/vpopmail


spamd file in /etc/rc.d/init.d/
_________________________________________________________________________

#!/bin/sh
#
# spamassassin This script starts and stops the spamd daemon
#
# chkconfig: - 79 30
#
# description: spamd is a daemon process which uses SpamAssassin tocheck
#              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

# Source spamd configuration.
if [ -f /etc/sysconfig/spamd ] ; then
        . /etc/sysconfig/spamd
else
        OPTIONS=" -d -x -q -u vpopmail"
fi

[ -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 spamd $OPTIONS
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/spamd
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down spamd: "
        killproc spamd
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f /var/lock/subsys/spamd
_______________________________________________________________________________

I think some of the problems I am having might be related to how I am starting the daemon. Currently, I am using this in the "start" section:

daemon spamd -x -u spamd -H /home/spamd -d -v -m 10 -Q

Greg



Reply via email to