[csw-devel] SF.net SVN: gar:[16005] csw/mgar/pkg/sasl/trunk/files/cswsaslauthd.init

guengel at users.sourceforge.net guengel at users.sourceforge.net
Wed Oct 26 21:20:58 CEST 2011


Revision: 16005
          http://gar.svn.sourceforge.net/gar/?rev=16005&view=rev
Author:   guengel
Date:     2011-10-26 19:20:58 +0000 (Wed, 26 Oct 2011)
Log Message:
-----------
Use /sbin/sh as interpreter. Return 1 on configuration errors.

Modified Paths:
--------------
    csw/mgar/pkg/sasl/trunk/files/cswsaslauthd.init

Modified: csw/mgar/pkg/sasl/trunk/files/cswsaslauthd.init
===================================================================
--- csw/mgar/pkg/sasl/trunk/files/cswsaslauthd.init	2011-10-26 18:56:53 UTC (rev 16004)
+++ csw/mgar/pkg/sasl/trunk/files/cswsaslauthd.init	2011-10-26 19:20:58 UTC (rev 16005)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/sbin/sh
 # Startup script for saslauthd
 
 # s none /etc/rc2.d/S85cswsaslauthd=../init.d/cswsaslauthd
@@ -14,7 +14,7 @@
 #RC_SLEV 2
 
 INIT_FILE=/etc/opt/csw/saslauthd.init
-if [ -f "${INIT_FILE}" ]; then
+if [ ! -f "${INIT_FILE}" ]; then
   INIT_FILE=/opt/csw/etc/saslauthd.init
 fi
 
@@ -23,14 +23,14 @@
 	. "${INIT_FILE}"
 else
 	echo "You need to create ${INIT_FILE} and configure mechanism to be used"
-	exit 0
+	exit 1
 fi
 
 
 # Check if we have any mechanisms defined
 if [ "x${MECHANISM}" = "x" ]; then
     echo "You need to configure ${INIT_FILE} with mechanism to be used"
-    exit 0
+    exit 1
 else
     PARAMS="${PARAMS} -a ${MECHANISM}"
 fi

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list