summaryrefslogtreecommitdiff
path: root/java/broker/bin/qpid.stopall
diff options
context:
space:
mode:
authorMarnie McCormack <marnie@apache.org>2008-10-30 16:34:06 +0000
committerMarnie McCormack <marnie@apache.org>2008-10-30 16:34:06 +0000
commit7525de59ec45465cabe543aed16ddde188780221 (patch)
tree169db9a7b7510dffc3e9cd646b9c97402e060a7e /java/broker/bin/qpid.stopall
parent63126f530a15076f4a3970ca4e13b528be1c6937 (diff)
downloadqpid-python-7525de59ec45465cabe543aed16ddde188780221.tar.gz
QPID-961 Changes to qpid stop scripts to make them work on solaris and linux and also clean up to simplify. qpid.stopall now just passes through to qpid.stop rather than go back & forth between scripts. Only retained it in case we have users currently dependent on it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@709199 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/broker/bin/qpid.stopall')
-rwxr-xr-xjava/broker/bin/qpid.stopall49
1 files changed, 1 insertions, 48 deletions
diff --git a/java/broker/bin/qpid.stopall b/java/broker/bin/qpid.stopall
index d71f591de8..b0ad506629 100755
--- a/java/broker/bin/qpid.stopall
+++ b/java/broker/bin/qpid.stopall
@@ -24,51 +24,4 @@
# Utilises qpid.stop to perform the actual stopping
#
-PROGRAM="DQPID"
-
-#
-# grep ps for instances of $PROGRAM and collect PIDs
-#
-lookup()
-{
-#pids=`ps o pid,command | grep $PROGRAM | grep -v grep | cut -d ' ' -f 1`
-pids=`ps -ef |grep $USER | grep $PROGRAM | grep -v grep | awk '{print $2}'`
-result=`echo -n $pids | wc -w`
-}
-
-
-#
-# Show the PS output for given set of pids
-#
-showPids()
-{
-ps -o user,pid,args -p $pids
-}
-
-
-#
-# Main Run
-#
-
-lookup
-
-if [[ $[$result] == 0 ]] ; then
- echo "No Qpid Brokers found running under user '$USER'"
- exit 0
-fi
-
-for pid in $pids ; do
-
-qpid.stop $pid
-
-done
-
-# Check we have quit all
-lookup
-
-if [[ $[$result] == 0 ]] ; then
- echo "All Qpid brokers successfully quit"
-else
- echo "Some brokers were not quit"
- showPids $pids
-fi
+qpid.stop $*