Update mw.tpl

pull/883/head
dami 1 month ago
parent b1aa5b8183
commit d7c68cfaa9
  1. 3
      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

Loading…
Cancel
Save