[Pkg-cyrus-sasl2-commits] r537 - in /cyrus-sasl-2.1/trunk/debian: changelog sasl2-bin.saslauthd.init
fabbe at users.alioth.debian.org
fabbe at users.alioth.debian.org
Mon Dec 28 10:51:22 UTC 2009
Author: fabbe
Date: Mon Dec 28 10:51:22 2009
New Revision: 537
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/?sc=1&rev=537
Log:
Fix return code comparisons in saslauthd init script.
Modified:
cyrus-sasl-2.1/trunk/debian/changelog
cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init
Modified: cyrus-sasl-2.1/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/changelog?rev=537&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/changelog (original)
+++ cyrus-sasl-2.1/trunk/debian/changelog Mon Dec 28 10:51:22 2009
@@ -12,8 +12,10 @@
(Closes: #560748)
* debian/sasl2-bin.postinst: Don't attempt sasldb upgrade if the database
file does not exist. (Closes: #521852)
-
- -- Fabian Fagerholm <fabbe at debian.org> Mon, 28 Dec 2009 12:40:46 +0200
+ * debian/sasl2-bin.saslauthd.init: Fix return code comparisons.
+ (Closes: #525424)
+
+ -- Fabian Fagerholm <fabbe at debian.org> Mon, 28 Dec 2009 12:45:31 +0200
cyrus-sasl2 (2.1.23.dfsg1-3) unstable; urgency=low
Modified: cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init?rev=537&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init (original)
+++ cyrus-sasl-2.1/trunk/debian/sasl2-bin.saslauthd.init Mon Dec 28 10:51:22 2009
@@ -134,7 +134,7 @@
# Start the daemon, phase 1: see if it is already running.
start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME \
--exec $DAEMON --test > /dev/null
- if [ "$?" != 0 ]; then
+ if [ "$?" != "0" ]; then
log_progress_msg "(already running)"
log_end_msg 0
return 0
@@ -143,7 +143,7 @@
# Start the daemon, phase 2: it was not running, so actually start it now.
start-stop-daemon --start --quiet --pidfile $PIDFILE --name $NAME \
--exec $DAEMON -- $DAEMON_ARGS
- if [ "$?" -ne 0 ]; then
+ if [ "$?" -ne "0" ]; then
log_end_msg 1
return 1
fi
@@ -187,13 +187,13 @@
start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 \
--pidfile $PIDFILE --exec $DAEMON
- if [ "$?" -eq 2 ]; then
+ if [ "$?" -eq "2" ]; then
# Failed to stop.
log_end_msg 1
return 2
fi
- if [ "$?" -eq 1 ]; then
+ if [ "$?" -eq "1" ]; then
# Already stopped.
log_progress_msg "(not running)"
fi
@@ -240,7 +240,7 @@
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--exec $DAEMON --test > /dev/null
- if [ "$?" -eq 0 ]; then
+ if [ "$?" -eq "0" ]; then
# Not running, signal this and stop.
log_progress_msg "(not running)"
log_end_msg 0
More information about the Pkg-cyrus-sasl2-commits
mailing list