Package: sasl2-bin
Version: 2.1.22.dfsg1-23

Hello,

When I do a /etc/init.d/saslauthd stop (like the system), the saslauthd daemon is not stopped, but the pid file is removed.

I propose the following patch :
--- saslauthd.ori       2008-09-01 19:36:07.000000000 +0200
+++ saslauthd   2009-04-24 15:32:20.000000000 +0200
@@ -187,13 +187,14 @@
        start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 \
                --pidfile $PIDFILE --exec $DAEMON

-       if [ "$?" -eq 2 ]; then
+       RC=$?
+       if [ "$RC" -eq "2" ]; then
                # Failed to stop.
                log_end_msg 1
                return 2
        fi

-       if [ "$?" -eq 1 ]; then
+       if [ "$RC" -eq "1" ]; then
                # Already stopped.
                log_progress_msg "(not running)"
        fi

Thanks !

I'm using lenny on AMD64 uptodate.
begin:vcard
fn:Dominique Fournier
n:Fournier;Dominique
org:;CRIC
adr;dom:;;25 av des Martyrs;Grenoble;;38042
email;internet:[email protected]
title:CNRS
tel;work:04 76 88 78 59
tel;cell:04 76 88 79 54
url:http://cric.grenoble.cnrs.fr
version:2.1
end:vcard

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to