From f05efd169312fbc043e72b8efeaaca6c5ccc5efb Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 22 Jul 2025 18:06:15 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 2875f8652..633207765 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -53,6 +53,9 @@ mw_start_panel() echo -e ".\c" sleep 0.5 isStart=$(lsof -n -P -i:$port|grep LISTEN|grep -v grep|awk '{print $2}'|xargs) + if [[ "$isStart" == "" ]];then + isStart=$(ps -ef|grep python3|grep mdserver-web|grep app:app|awk '{print $2}'|xargs) + fi let n+=1 if [ $n -gt 60 ];then break;