moicen: start htyproc from release binary when present

Made-with: Cursor
This commit is contained in:
2026-04-26 21:25:33 +08:00
parent c30b5b927e
commit 8af2bc18c9
+5 -1
View File
@@ -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"