[jbosscache-commits] JBoss Cache SVN: r6340 - benchmarks/benchmark-fwk/trunk.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Fri Jul 18 13:33:30 EDT 2008
Author: mircea.markus
Date: 2008-07-18 13:33:30 -0400 (Fri, 18 Jul 2008)
New Revision: 6340
Modified:
benchmarks/benchmark-fwk/trunk/killNode.sh
Log:
enhanced logging
Modified: benchmarks/benchmark-fwk/trunk/killNode.sh
===================================================================
--- benchmarks/benchmark-fwk/trunk/killNode.sh 2008-07-18 16:59:00 UTC (rev 6339)
+++ benchmarks/benchmark-fwk/trunk/killNode.sh 2008-07-18 17:33:30 UTC (rev 6340)
@@ -4,19 +4,9 @@
#
# This script allows you to kill benchmark runner instances started with runNode.sh
#
-# Note that runNode.sh will create a PID.pid file in the current directory, which
-# this script will use to get the process id of the process to kill.
-#
##################################################################################
-PIDFILE=PID.`hostname -s`.pid
-
-if [ -e ${PIDFILE} ]
-then
- pid=`cat ${PIDFILE}`
- echo "Killing process ${pid}"
- kill -9 ${pid}
- rm ${PIDFILE}
-fi
-
+ps -elf | grep cacheBenchFwk.cacheWrapperClassName | grep -v grep | cut -d \ -f 5 | xargs kill -9
+ps -elf | grep allJBossCacheTests.sh | grep -v grep | cut -d \ -f 5 | xargs kill -9
+ps -elf | grep /runNode.sh | grep -v grep | cut -d \ -f 5 | xargs kill -9
exit 0
\ No newline at end of file
More information about the jbosscache-commits
mailing list