sigint_stop_dnodes.sh 332 字节
Newer Older
S
Shengliang Guan 已提交
1 2 3 4 5
#!/bin/sh

set +e
#set -x

S
Shengliang Guan 已提交
6
unset LD_PRELOAD
S
Shengliang Guan 已提交
7 8 9 10
UNAME_BIN=`which uname`
OS_TYPE=`$UNAME_BIN`

PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
11
echo "Killing taosd processes " $PID
S
Shengliang Guan 已提交
12 13 14 15 16
while [ -n "$PID" ]; do
  #echo "Killing taosd processes " $PID
  kill $PID
  PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
done