[jboss-cvs] JBossAS SVN: r111248 - branches/JBPAPP_5_1/server/src/bin.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 26 08:28:03 EDT 2011
Author: mladen.turk at jboss.com
Date: 2011-04-26 08:28:02 -0400 (Tue, 26 Apr 2011)
New Revision: 111248
Modified:
branches/JBPAPP_5_1/server/src/bin/jboss_init_solaris.sh
Log:
Fix JBPAPP-6394 part 3. Properly detect the AS pid
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-26 08:34:28 UTC (rev 111247)
+++ branches/JBPAPP_5_1/server/src/bin/jboss_init_solaris.sh 2011-04-26 12:28:02 UTC (rev 111248)
@@ -68,7 +68,7 @@
# Find correct run.sh process (we might find more than 1 candidate)
isJBossRunningPid=`ps -u ${JBossUserId} -o pid -o args | \
- awk '{if (index($0, "'${JBossHome}'") && $2 ~ /sh$/) print $1}'`
+ grep 'java\ .*run\.sh' | awk '{print $1;}'`
if [ "x${isJBossRunningPid}" = "x" ]; then
return 1
fi
@@ -76,7 +76,7 @@
# Find java process with one of the above processes as parent
for JBossPid in ${isJBossRunningPid}; do
isPidRunning=`ps -u ${JBossUserId} -o pid -o args -o ppid | \
- awk '{if ($2 ~ /java$/ && $NF ~ /^'${JBossPid}'$/) print $1}'`
+ grep 'java\ .*run\.sh' | awk '{print $1;}'`
if [ "x${isPidRunning}" != "x" ]; then
args=`pargs -a ${JBossPid} 2>/dev/null`
test "x${args}" = "x" && continue
More information about the jboss-cvs-commits
mailing list