[Pkg-cyrus-sasl2-commits] r40 - in /cyrus-sasl-2.1/trunk/debian: changelog cyrus-sasl-2.1-bin.saslauthd.init

el_cubano-guest at users.alioth.debian.org el_cubano-guest at users.alioth.debian.org
Fri Oct 20 06:56:53 UTC 2006


Author: el_cubano-guest
Date: Sun Oct 15 11:54:55 2006
New Revision: 40

URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/?sc=1&rev=40
Log:
Fix for #257181, init script now gives useful error

Modified:
    cyrus-sasl-2.1/trunk/debian/changelog
    cyrus-sasl-2.1/trunk/debian/cyrus-sasl-2.1-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=40&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/changelog (original)
+++ cyrus-sasl-2.1/trunk/debian/changelog Sun Oct 15 11:54:55 2006
@@ -22,6 +22,7 @@
     - Put /etc/sasl at start of the config search path (Closes: #211156)
     - Split OTP plugin into its own package (Closes: #251735)
     - Made -modules suggest -modules-{sql,otp,gssapi-heimdal}
+    - Fixed saslauthd init script so it gives useful error (Closes: #257181)
 
- -- Roberto C. Sanchez <roberto at connexer.com>  Sun, 15 Oct 2006 07:35:09 -0400
+ -- Roberto C. Sanchez <roberto at connexer.com>  Sun, 15 Oct 2006 07:55:06 -0400
 

Modified: cyrus-sasl-2.1/trunk/debian/cyrus-sasl-2.1-bin.saslauthd.init
URL: http://svn.debian.org/wsvn/pkg-cyrus-sasl2/cyrus-sasl-2.1/trunk/debian/cyrus-sasl-2.1-bin.saslauthd.init?rev=40&op=diff
==============================================================================
--- cyrus-sasl-2.1/trunk/debian/cyrus-sasl-2.1-bin.saslauthd.init (original)
+++ cyrus-sasl-2.1/trunk/debian/cyrus-sasl-2.1-bin.saslauthd.init Sun Oct 15 11:54:55 2006
@@ -39,14 +39,17 @@
 # Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
 . /lib/lsb/init-functions
 
-# If the daemon is not enabled, simply exit
-[ "$START" != "yes" ] && exit 0
+# If the daemon is not enabled, give the user a useful error and then exit
+if [ "$START" != "yes" ]; then
+	log_failure_msg "To enable $NAME, edit /etc/default/$NAME and add START=yes"
+	exit 1
+fi
 
 # If no mechanisms are defined, log this and exit
 if [ -z $MECHANISMS ]; then
 	log_failure_msg "No mechanisms defined in /etc/default/$NAME," \
 			"not starting $NAME."
-	exit 0
+	exit 1
 fi
 
 # Construct argument string




More information about the Pkg-cyrus-sasl2-commits mailing list