From d7c68cfaa92edfbbe7bc99b7fc7a940ee8db26e0 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 15 Apr 2026 16:42:15 +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 0347d3d8b..880e5c9b6 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -53,7 +53,8 @@ mw_start_panel() do echo -e ".\c" sleep 0.5 - isStart=$(lsof -n -P -i:$port|grep LISTEN|grep -v grep|awk '{print $2}'|xargs) + # isStart=$(lsof -n -P -i:$port|grep LISTEN|grep -v grep|awk '{print $2}'|xargs) + isStart=$(ss -tulnp | grep ":$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