[jboss-cvs] JBossAS SVN: r111240 - branches/JBPAPP_5_1/server/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Apr 25 04:15:56 EDT 2011
Author: mladen.turk at jboss.com
Date: 2011-04-25 04:15:56 -0400 (Mon, 25 Apr 2011)
New Revision: 111240
Modified:
branches/JBPAPP_5_1/server/src/bin/jboss_init_solaris.sh
Log:
Fix JBPAPP-6394 part 2. Return zero if match was found
Modified: branches/JBPAPP_5_1/server/src/bin/jboss_init_solaris.sh
===================================================================
--- branches/JBPAPP_5_1/server/src/bin/jboss_init_solaris.sh 2011-04-25 08:06:34 UTC (rev 111239)
+++ branches/JBPAPP_5_1/server/src/bin/jboss_init_solaris.sh 2011-04-25 08:15:56 UTC (rev 111240)
@@ -79,14 +79,14 @@
awk '{if ($2 ~ /java$/ && $NF ~ /^'${JBossPid}'$/) print $1}'`
if [ "x${isPidRunning}" != "x" ]; then
args=`pargs -a ${JBossPid} 2>/dev/null`
- test "x${args}" = "x" && return 0
+ test "x${args}" = "x" && continue
argv=""
for i in ${args}
do
argv="$argv `echo $i | grep -v '^argv'`"
done
inst=`echo ${argv} | grep "\-c ${JBossInstance}" 2>/dev/null`
- test "x${inst}" = "x" && return 0
+ test "x${inst}" != "x" && return 0
fi
done
return 1
More information about the jboss-cvs-commits
mailing list