Bug#525424: /etc/init.d/saslauthd don't stop saslauthd

Dominique Fournier dominique.fournier at grenoble.cnrs.fr
Fri Apr 24 13:44:21 UTC 2009


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dominique_fournier.vcf
Type: text/x-vcard
Size: 275 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cyrus-sasl2-debian-devel/attachments/20090424/291ca5e0/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4106 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-cyrus-sasl2-debian-devel/attachments/20090424/291ca5e0/attachment.bin>


More information about the Pkg-cyrus-sasl2-debian-devel mailing list