[csw-devel] SF.net SVN: gar:[5318] csw/mgar/pkg/stunnel/trunk/files/CSWstunnel. cswstunnel

skayser at users.sourceforge.net skayser at users.sourceforge.net
Thu Jun 18 23:49:03 CEST 2009


Revision: 5318
          http://gar.svn.sourceforge.net/gar/?rev=5318&view=rev
Author:   skayser
Date:     2009-06-18 21:49:02 +0000 (Thu, 18 Jun 2009)

Log Message:
-----------
stunnel: protect ^ in cswstunnel init script from /bin/sh

Modified Paths:
--------------
    csw/mgar/pkg/stunnel/trunk/files/CSWstunnel.cswstunnel

Modified: csw/mgar/pkg/stunnel/trunk/files/CSWstunnel.cswstunnel
===================================================================
--- csw/mgar/pkg/stunnel/trunk/files/CSWstunnel.cswstunnel	2009-06-18 21:30:38 UTC (rev 5317)
+++ csw/mgar/pkg/stunnel/trunk/files/CSWstunnel.cswstunnel	2009-06-18 21:49:02 UTC (rev 5318)
@@ -18,19 +18,19 @@
 test -f $DAEMON || exit 0
 test -f $CONFIG || exit 0
 
-CHROOT=`grep ^chroot $CONFIG | sed 's/.*= *//'`
-PIDFILE=`grep ^pid $CONFIG | sed 's/.*= *//'`
+CHROOT=`grep '^chroot' $CONFIG | sed 's/.*= *//'`
+PIDFILE=`grep '^pid' $CONFIG | sed 's/.*= *//'`
 
 test -z "$DEFAULTPIDFILE" && PIDFILE = $DEFAULTPIDFILE
 
 case "$1" in
     start)
-        printf "Starting universal SSL tunnel: stunnel"
+        printf "Starting universal SSL tunnel: cswstunnel"
         $DAEMON $CONFIG || printf " failed"
         echo "."
         ;;
     stop)
-        printf "Stopping universal SSL tunnel: stunnel"
+        printf "Stopping universal SSL tunnel: cswstunnel"
         if test -r $CHROOT/$PIDFILE; then
             kill `cat $CHROOT/$PIDFILE` 2> /dev/null || printf " failed"
         else
@@ -39,7 +39,7 @@
         echo "."
         ;;
      restart|force-reload)
-        echo "Restarting universal SSL tunnel"
+        echo "Restarting universal SSL tunnel: cswstunnel"
         $0 stop
         sleep 1
         $0 start


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