fix kill script to avoid others' path with taosdata be killed by mistake.
This commit is contained in:
parent
45b90bf909
commit
4926dddebb
|
@ -6,8 +6,8 @@ if [ -n "$PID" ]; then
|
|||
sudo systemctl stop taosd
|
||||
fi
|
||||
|
||||
PID=`ps -ef|grep taosd | grep -v grep | awk '{print $2}'`
|
||||
PID=`ps -ef|grep -w taosd | grep -v grep | awk '{print $2}'`
|
||||
if [ -n "$PID" ]; then
|
||||
echo sudo kill -9 $PID
|
||||
sudo kill -9 $PID
|
||||
sudo pkill taosd
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue