From 8af2bc18c9d1bf0457108b4e965dac478f1a78bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Sun, 26 Apr 2026 21:25:33 +0800 Subject: [PATCH] moicen: start htyproc from release binary when present Made-with: Cursor --- scripts/moicen_start_huiwings_stack.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/moicen_start_huiwings_stack.sh b/scripts/moicen_start_huiwings_stack.sh index 06d6e82..f06d5ae 100755 --- a/scripts/moicen_start_huiwings_stack.sh +++ b/scripts/moicen_start_huiwings_stack.sh @@ -86,7 +86,11 @@ if [ -d "$HUIKE/htyproc" ]; then fi fi if [ "$_start_htyproc" = 1 ]; then - ( cd "$HUIKE/htyproc" && nohup "${CARGO_NO_PROXY[@]}" bash -c "$_SRC_ENV; exec cargo run $REL" >>"$HUIKE/htyproc/htyproc.nohup.log" 2>&1 ) & + if [ -x "$HUIKE/target/release/htyproc" ]; then + ( cd "$HUIKE/htyproc" && nohup "${CARGO_NO_PROXY[@]}" env -u ALL_PROXY -u all_proxy -u http_proxy -u https_proxy "$HUIKE/target/release/htyproc" >>"$HUIKE/htyproc/htyproc.nohup.log" 2>&1 ) & + else + ( cd "$HUIKE/htyproc" && nohup "${CARGO_NO_PROXY[@]}" bash -c "$_SRC_ENV; exec cargo run $REL" >>"$HUIKE/htyproc/htyproc.nohup.log" 2>&1 ) & + fi fi echo "已后台启动。日志: $AUTH/htyuc/htyuc.nohup.log, $HUIKE/htyws/htyws.nohup.log, $HUIKE/htykc/htykc.nohup.log"