952 days continuous production uptime, 40k+ tp/s single node. Original corpo Bitbucket history not included — clean archive commit.
25 lines
437 B
Bash
25 lines
437 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# brokerStop.sh
|
|
#
|
|
# quick and dirty shell script to stop broker processes by sending the TERM kill signal.
|
|
# Brutal yet effective.
|
|
#
|
|
# HISTORY:
|
|
# --------
|
|
# 06-15-17 mks original coding
|
|
#
|
|
|
|
|
|
SCRIPT=$(readlink -f $0)
|
|
SCRIPTPATH=$(dirname ${SCRIPT})
|
|
PIDDIR="/../pids/"
|
|
PDIR=${SCRIPTPATH}${PIDDIR}
|
|
|
|
for pid in `ps -ef | awk '/\/brokers\// && !/awk/ {print $2}'`
|
|
do
|
|
kill $pid
|
|
done
|
|
|
|
rm ${PDIR}/* 2>/dev/null
|