From 7d83f29db7a24cb5198b8e9a239a79a105c6b589 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 24 Nov 2024 22:07:47 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index e879c98ca..05df11e28 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -137,7 +137,8 @@ mw_stop_panel() done PLIST=`ps -ef|grep app:app |grep -v grep|awk '{print $2}'` - for i in ${($PLIST)[@]} + ARR=($PLIST) + for i in ${ARR[@]} do kill -9 $i > /dev/null 2>&1 done