summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/components/queue/qpidd-stop
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/components/queue/qpidd-stop')
-rwxr-xr-xsca-cpp/trunk/components/queue/qpidd-stop6
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-cpp/trunk/components/queue/qpidd-stop b/sca-cpp/trunk/components/queue/qpidd-stop
index bb43d8aaba..c8af680d78 100755
--- a/sca-cpp/trunk/components/queue/qpidd-stop
+++ b/sca-cpp/trunk/components/queue/qpidd-stop
@@ -23,4 +23,8 @@ here=`echo "import os; print os.path.realpath('$0')" | python`; here=`dirname $h
qpid_prefix=`cat $here/qpidc.prefix`
qpidd="$qpid_prefix/sbin/qpidd"
-kill `ps -ef | grep -v grep | grep "${qpidd}" | awk '{ print $2 }'`
+k=`ps -ef | grep -v grep | grep "${qpidd}" | awk '{ print $2 }'`
+if [ "$k" != "" ]; then
+ kill $k
+fi
+