[csw-devel] SF.net SVN: gar:[5306] csw/mgar/pkg/squid/trunk/files/cswsquid

valholla at users.sourceforge.net valholla at users.sourceforge.net
Thu Jun 18 21:13:41 CEST 2009


Revision: 5306
          http://gar.svn.sourceforge.net/gar/?rev=5306&view=rev
Author:   valholla
Date:     2009-06-18 19:13:41 +0000 (Thu, 18 Jun 2009)

Log Message:
-----------
startscript fix

Modified Paths:
--------------
    csw/mgar/pkg/squid/trunk/files/cswsquid

Modified: csw/mgar/pkg/squid/trunk/files/cswsquid
===================================================================
--- csw/mgar/pkg/squid/trunk/files/cswsquid	2009-06-18 13:11:58 UTC (rev 5305)
+++ csw/mgar/pkg/squid/trunk/files/cswsquid	2009-06-18 19:13:41 UTC (rev 5306)
@@ -14,7 +14,7 @@
 case "$1" in
     'start')
         if [ -x ${SQUID_DAEMON} -a -f ${SQUID_CONF} ]; then
-            if [ -n "`pgrep /squid`" ]; then
+            if [ -n "`pgrep squid`" ]; then
                 echo 'squid server is already running'
 	            exit 0
             else
@@ -32,11 +32,11 @@
         ;;
     'stop')
         if [ -x ${SQUID_DAEMON} -a -f ${SQUID_CONF} ]; then
-            if [ -n "`pgrep /squid`" ]; then
+            if [ -n "`pgrep squid`" ]; then
                 ## stop gracefully
 	            echo 'stopping squid server... please wait for cleanup...'
                 ${SQUID_DAEMON} -k shutdown && sleep 30
-                if [ -n "`pgrep /squid`" ]; then
+                if [ -n "`pgrep squid`" ]; then
                     echo 'squid server still running, killing...'
                     pkill -9 squid
                 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