Archive: Namaste PHP AMQP framework v1.0 (2017-2020)
952 days continuous production uptime, 40k+ tp/s single node. Original corpo Bitbucket history not included — clean archive commit.
This commit is contained in:
24
scripts/stopBrokers.sh
Normal file
24
scripts/stopBrokers.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user