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

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Tue Jul 9 15:27:07 CEST 2013


Revision: 21468
          http://gar.svn.sourceforge.net/gar/?rev=21468&view=rev
Author:   chninkel
Date:     2013-07-09 13:27:06 +0000 (Tue, 09 Jul 2013)
Log Message:
-----------
sasl/trunk: fixed init script so it doesn't use stop/start function names that are already sh reserved keywords

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

Modified: csw/mgar/pkg/sasl/trunk/files/changelog.CSW
===================================================================
--- csw/mgar/pkg/sasl/trunk/files/changelog.CSW	2013-07-09 13:21:25 UTC (rev 21467)
+++ csw/mgar/pkg/sasl/trunk/files/changelog.CSW	2013-07-09 13:27:06 UTC (rev 21468)
@@ -1,7 +1,9 @@
-sasl (2.1.25,REV=2013.07.08)
+sasl (2.1.25,REV=2013.07.09)
 
   * Updated README.CSW for sasl package to add information about
     sasl group.
+  * Fixed init script so it doesn't use stop/start function names that are
+    already sh reserved keywords.
 
  -- Yann Rouillard <yann at opencsw.org>  Mon, 08 Jul 2013 21:01:23 +0200
 

Modified: csw/mgar/pkg/sasl/trunk/files/cswsaslauthd.init
===================================================================
--- csw/mgar/pkg/sasl/trunk/files/cswsaslauthd.init	2013-07-09 13:21:25 UTC (rev 21467)
+++ csw/mgar/pkg/sasl/trunk/files/cswsaslauthd.init	2013-07-09 13:27:06 UTC (rev 21468)
@@ -41,13 +41,14 @@
     PARAMS="${PARAMS} -O ${CONFIG_FILE}"
 fi
 
-start() {
+
+start_daemon() {
     echo "Starting saslauthd " 
     /opt/csw/sbin/saslauthd ${PARAMS}
     echo
 }
 
-stop() {
+stop_daemon() {
     if test "x`pgrep -x saslauthd`" != x; then
         echo "Stopping saslauthd "
         pkill saslauthd
@@ -57,14 +58,14 @@
 
 case "$1" in
         start)
-            start
+            start_daemon
             ;;
         stop)
-            stop
+            stop_daemon
             ;;
         restart)
-            stop
-            start
+            stop_daemon
+            start\xC3_daemon
             ;;
         *)
             echo $"Usage: $0 {start|stop|restart}"

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