summaryrefslogtreecommitdiff
path: root/java/broker
diff options
context:
space:
mode:
Diffstat (limited to 'java/broker')
-rwxr-xr-xjava/broker/bin/qpid.stop16
1 files changed, 4 insertions, 12 deletions
diff --git a/java/broker/bin/qpid.stop b/java/broker/bin/qpid.stop
index 2a5caac8d4..316f8dff46 100755
--- a/java/broker/bin/qpid.stop
+++ b/java/broker/bin/qpid.stop
@@ -25,20 +25,12 @@
MAX_ATTEMPTS=2
SLEEP_DELAY=1
-DEFAULT_SEARCH="\-DPNAME=\""
+DEFAULT_SEARCH="PNAME=QPBRKR"
-#
-# Use QPID_PNAME to set search criteria.
-# - If not set default back to attempting QPID_STOP_SEARCH
-#
-if [ -z "$QPID_PNAME" ]; then
- if [ -z "$QPID_STOP_SEARCH" ]; then
- SEARCH=$DEFAULT_SEARCH;
- else
- SEARCH=$DEFAULT_SEARCH$QPID_STOP_SEARCH;
- fi
+if [ -z "$QPID_STOP_SEARCH" ]; then
+ SEARCH=$DEFAULT_SEARCH;
else
- SEARCH=$DEFAULT_SEARCH$QPID_PNAME;
+ SEARCH=$QPID_STOP_SEARCH;
fi
#