stop taosd using kill -9

This commit is contained in:
liuyq-617 2021-08-16 16:53:42 +08:00
parent bc9a01d46d
commit 281b0ea271
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ class TDDnodes:
psCmd = "ps -ef|grep -w taosd| grep -v grep| grep -v defunct | awk '{print $2}'"
processID = subprocess.check_output(psCmd, shell=True).decode("utf-8")
while(processID):
killCmd = "kill -TERM %s > /dev/null 2>&1" % processID
killCmd = "kill -9 %s > /dev/null 2>&1" % processID
os.system(killCmd)
time.sleep(1)
processID = subprocess.check_output(