Files
namaste/scripts/stopBrokers.sh
gramps 373ebc8c93 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.
2026-04-05 09:49:30 -07:00

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