stop_dnodes.sh 602 字节
Newer Older
S
slguan 已提交
1 2 3 4
#!/bin/sh

PID=`ps -ef|grep /usr/bin/taosd | grep -v grep | awk '{print $2}'`
if [ -n "$PID" ]; then 
C
chang 已提交
5 6
	echo systemctl stop taosd 
	systemctl stop taosd
S
slguan 已提交
7 8
fi
  
9
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
10
while [ -n "$PID" ]; do
C
chang 已提交
11 12 13
	echo kill -9 $PID 
	pkill -9 taosd
  fuser -k -n tcp 6030
14 15
  PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
done
H
Hui Li 已提交
16 17 18 19 20 21 22 23 24

PID=`ps -ef|grep -w tarbitrator | grep -v grep | awk '{print $2}'`
while [ -n "$PID" ]; do
	echo kill -9 $PID 
	pkill -9 tarbitrator
  fuser -k -n tcp 6040
  PID=`ps -ef|grep -w tarbitrator | grep -v grep | awk '{print $2}'`
done