fixing sub path_mode

This commit is contained in:
yusing
2024-03-07 04:51:23 +08:00
parent 2f439233ed
commit bee415e22c
12 changed files with 121 additions and 48 deletions

View File

@@ -1,12 +1,15 @@
#!/bin/bash
if [ "$1" == "restart" ]; then
echo "restarting"
killall go-proxy
fi
if [ -z "$VERBOSITY" ]; then
VERBOSITY=1
fi
echo "starting with verbosity $VERBOSITY" > log/go-proxy.log
if [ "$DEBUG" == "1" ]; then
/app/go-proxy -v=$VERBOSITY -log_dir=log --stderrthreshold=0 &
if [ "$1" != "restart" ]; then
tail -f /dev/null
fi
/app/go-proxy -v=$VERBOSITY -log_dir=log --stderrthreshold=0 2>> log/go-proxy.log &
tail -f /dev/null
else
/app/go-proxy -v=$VERBOSITY -log_dir=log --stderrthreshold=0 &
/app/go-proxy -v=$VERBOSITY -log_dir=log --stderrthreshold=0
fi