Update process check for httpd in sb.sh

Refactor process check for httpd service.
This commit is contained in:
甬哥侃侃侃ygkkk
2026-03-26 13:21:24 +08:00
committed by GitHub
parent b4565ccd43
commit 82eda2b5aa
+1 -1
View File
@@ -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)