Update mw.tpl

This commit is contained in:
Mr Chen 2024-11-28 20:39:52 +08:00
parent d6972bae75
commit 82e4e5c1d3
1 changed files with 7 additions and 0 deletions

View File

@ -116,6 +116,13 @@ mw_stop_task()
do
kill -9 $p > /dev/null 2>&1
done
zzpids=$(ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]' | awk '{print $2}')
arr=($zzpids)
for p in ${arr[@]}
do
kill -9 $p > /dev/null 2>&1
done
echo -e "\033[32mdone\033[0m"
}