From 82eda2b5aabc932513c98604fbc5d273ddfd0861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= <121604513+yonggekkk@users.noreply.github.com> Date: Thu, 26 Mar 2026 13:21:24 +0800 Subject: [PATCH] Update process check for httpd in sb.sh Refactor process check for httpd service. --- sb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sb.sh b/sb.sh index 757a58b..4457895 100644 --- a/sb.sh +++ b/sb.sh @@ -4034,7 +4034,7 @@ echo -e "🚀【 Tuic-v5 】${yellow}端口:$tu5_port 证书形式:$tu5_z if [[ "$sbnh" != "1.10" ]]; then echo -e "🚀【 Anytls 】${yellow}端口:$an_port 证书形式:$an_zs${plain}" fi -if [ -n "$(ps -ef 2>/dev/null | grep "$(cat /etc/s-box/subport.log 2>/dev/null)" | grep -v grep | awk 'NR==1 {print $2}')" ]; then +if ps -ef 2>/dev/null | grep "[h]ttpd -f -p" >/dev/null; then showsubtoken=$(cat /etc/s-box/subtoken.log 2>/dev/null) showsubport=$(cat /etc/s-box/subport.log 2>/dev/null) subip=$(cat /etc/s-box/server_ip.log)