moicen: start htyproc from release binary when present
Made-with: Cursor
This commit is contained in:
@@ -86,7 +86,11 @@ if [ -d "$HUIKE/htyproc" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$_start_htyproc" = 1 ]; then
|
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
|
fi
|
||||||
|
|
||||||
echo "已后台启动。日志: $AUTH/htyuc/htyuc.nohup.log, $HUIKE/htyws/htyws.nohup.log, $HUIKE/htykc/htykc.nohup.log"
|
echo "已后台启动。日志: $AUTH/htyuc/htyuc.nohup.log, $HUIKE/htyws/htyws.nohup.log, $HUIKE/htykc/htykc.nohup.log"
|
||||||
|
|||||||
Reference in New Issue
Block a user