Skip to content

Commit

Permalink
Update cli.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Dec 20, 2024
1 parent d691862 commit 784629f
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,26 @@ mw_start_bgtask(){

mw_stop()
{
PLIST=`ps -ef|grep app:app |grep -v grep|awk '{print $2}'`
for i in $PLIST
APP_LIST=`ps -ef|grep app:app |grep -v grep|awk '{print $2}'`
APP_LIST=($APP_LIST)
for p in ${APP_LIST[@]}
do
kill -9 $i > /dev/null 2>&1
kill -9 $p > /dev/null 2>&1
done

PIDS=`ps -ef|grep panel_task.py | grep -v grep |awk '{print $2}'`
for p in $PIDS
TASK_LIST=`ps -ef|grep panel_task.py | grep -v grep |awk '{print $2}'`
TASK_LIST=($TASK_LIST)
for p in ${TASK_LIST[@]}
do
kill -9 $p > /dev/null 2>&1
done

zzpids=`ps -A -o stat,ppid,pid | grep -e '^[Zz]' | awk '{print $2}'`
zzpids=($zzpids)
for p in ${zzpids[@]}
do
kill -9 ${p} > /dev/null 2>&1
done
}

case "$1" in
Expand Down

0 comments on commit 784629f

Please sign in to comment.