From ee344ade832f594c6b80f58f8bf2ac7a92e6c0a3 Mon Sep 17 00:00:00 2001 From: eooce <142894633+eooce@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:20:22 +0800 Subject: [PATCH] Update sing-box.sh --- sing-box.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sing-box.sh b/sing-box.sh index db71378..310526f 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -44,7 +44,7 @@ fi check_argo() { if [ -f "${work_dir}/argo" ]; then if [ -f /etc/alpine-release ]; then - rc-service nginx status | grep -q "stoped" && yellow "not running" && return 1 || green "running" && return 0 + rc-service argo status | grep -q "started" && green "running" && return 0 || yellow "not running" && return 1 else [ "$(systemctl is-active argo)" = "active" ] && green "running" && return 0 || yellow "not running" && return 1 fi @@ -58,7 +58,7 @@ fi check_nginx() { if command -v nginx &>/dev/null; then if [ -f /etc/alpine-release ]; then - rc-service nginx status | grep -q "started" && green "running" && return 0 || yellow "not running" && return 1 + rc-service nginx status | grep -q "stoped" && yellow "not running" && return 1 || green "running" && return 0 else [ "$(systemctl is-active nginx)" = "active" ] && green "running" && return 0 || yellow "not running" && return 1 fi