[jboss-cvs] JBossAS SVN: r111239 - 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:06:35 EDT 2011


Author: mladen.turk at jboss.com
Date: 2011-04-25 04:06:34 -0400 (Mon, 25 Apr 2011)
New Revision: 111239

Modified:
   branches/JBPAPP_5_1/server/src/bin/jboss_init_solaris.sh
Log:
Fix JBPAPP-6394 for Solaris9 which pargs command doesn't support -l option

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 02:18:04 UTC (rev 111238)
+++ branches/JBPAPP_5_1/server/src/bin/jboss_init_solaris.sh	2011-04-25 08:06:34 UTC (rev 111239)
@@ -78,9 +78,14 @@
       isPidRunning=`ps -u ${JBossUserId} -o pid -o args -o ppid | \
         awk '{if ($2 ~ /java$/ && $NF ~ /^'${JBossPid}'$/) print $1}'`
       if [ "x${isPidRunning}" != "x" ]; then
-        args=`pargs -l ${JBossPid}`
+        args=`pargs -a ${JBossPid} 2>/dev/null`
         test "x${args}" = "x" && return 0
-        inst=`echo ${args} | grep "\-c ${JBossInstance}" 2>/dev/null`
+        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
       fi
     done



More information about the jboss-cvs-commits mailing list