Package: dcc-server
Version: 1.3.42-2, 1.3.42-4

I've recently been trying to use the dcc greylist milter with sendmail for
a client of mine. During this process I noticed that the init.d script for
dcc-server won't shut down the greylist daemon if the main dcc daemon isn't
enabled. I am not well versed in the dcc architecture yet but as I
understand it the three parts of the package; dccd, dccifd and greylistd
(dccd -G) can each exist independently. The startup portion of the script
treats them that way but the shutdown does not.

To get things working on the system that I'm using for this project I
changed the dcc_stop function in /etc/init.d/dcc-server to the following:

dcc_stop () {
    if is_enabled "$DCCIFD_ENABLE" 'DCCIFD_ENABLE'; then
        pidfile="$DCC_RUNDIR/dccifd.pid"
        if [ -e "$pidfile" ]; then
           log_daemon_msg "Stopping $DESC" "dccifd"
           kill -15 `cat $pidfile`
           log_end_msg $?
        fi
    fi

    if is_enabled "$GREY_ENABLE" 'GREY_ENABLE'; then
        log_daemon_msg "Stopping $DESC" "grey"
        $DCC_LIBEXEC/stop-dccd -G
        log_end_msg $?
    fi

    if is_enabled "$DCCD_ENABLE" 'DCCD_ENABLE'; then
        log_daemon_msg "Stopping $DESC" "dccd"
        $DCC_LIBEXEC/stop-dccd
        log_end_msg $?
    fi
}

I'm by no means sure that this is the best solution but it does result in a
startup/shutdown that works (at least so far <G>).


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to