mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-07 23:28:24 +08:00
add assembly and operation scripts to simplify deployment
xiongyongxin@hotmail
This commit is contained in:
16
web/bin/shutdown.sh
Normal file
16
web/bin/shutdown.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd `dirname $0`/../lib
|
||||
lib_dir=`pwd`
|
||||
|
||||
pid=`ps ax | grep -i 'kafka-manager-web' | grep ${lib_dir} | grep java | grep -v grep | awk '{print $1}'`
|
||||
if [ -z "$pid" ] ; then
|
||||
echo "No kafka-manager-web running."
|
||||
exit -1;
|
||||
fi
|
||||
|
||||
echo "The kafka-manager-web(${pid}) is running..."
|
||||
|
||||
kill ${pid}
|
||||
|
||||
echo "Send shutdown request to kafka-manager-web(${pid}) OK"
|
||||
Reference in New Issue
Block a user