Don Levey wanted us to know:

>> I've attached my clamav-milter init script.  Note that I've adjusted
>Unfortunately, the script didn't make it through.  Here's what I've got in
>the init.d/clamav-milter script:

Well that is because I apparently forgot to attach it.  Look for it on
this one.

>       CLAMAV_FLAGS=
>       test -f /etc/sysconfig/clamav-milter && . /etc/sysconfig/clamav-milter
>
>Well, there's more, but this looks like the important line.
>Another chance to display my ignorance:
>Does this mean that it will pick up the flags from the file I've got in
>sysconfig, and use them when it starts?

Yes.

>If so, then it looks like simply adjusting the priorities will do it.

Yes.
-- 
Regards...              Todd
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.       --Benjamin Franklin
Linux kernel 2.6.3-8mdkenterprise   2 users,  load average: 0.02, 0.03, 0.03
#!/bin/sh
#
# Startup script for the Clamav Milter Daemon
#
# chkconfig: 2345 78 32
# description: clamav-milter is a daemon which hooks into sendmail \
#              and routes email messages to clamav.
# processname: clamav-milter
# pidfile: /var/run/clamav/clamav-milter.pid
# config: /etc/sysconfig/clamav-milter

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

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

[ -x /usr/sbin/clamav-milter ] || exit 0

# Local clamav-milter config
CLAMAV_FLAGS=
test -f /etc/sysconfig/clamav-milter && . /etc/sysconfig/clamav-milter

# See how we were called.
case "$1" in
  start)
        echo -n "Starting Clamav Milter Daemon: "
        daemon clamav-milter ${CLAMAV_FLAGS}
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/clamav-milter
        ;;
  stop)
        echo -n "Stopping Clamav Milter Daemon: "
        killproc clamav-milter
        RETVAL=$?
        echo
        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/clamav-milter
        ;;
  status)
        status clamav-milter
        RETVAL=$?
        ;;
  restart|reload)
        $0 stop
        $0 start
        RETVAL=$?
        ;;
  *)
        echo "Usage: clamav-milter {start|stop|status|restart|reload}"
        exit 1
esac

exit $RETVAL

Reply via email to