1028
All checks were successful
Clone Repository with Trojan-Go Proxy / clone_with_proxy (push) Successful in 41s
All checks were successful
Clone Repository with Trojan-Go Proxy / clone_with_proxy (push) Successful in 41s
This commit is contained in:
parent
9926da315e
commit
620ecd082f
10
.github/workflows/BBB.yml
vendored
10
.github/workflows/BBB.yml
vendored
@ -44,14 +44,14 @@ jobs:
|
|||||||
# lsof -i :1080 || echo "Trojan-Go did not start on port 1080"
|
# lsof -i :1080 || echo "Trojan-Go did not start on port 1080"
|
||||||
- name: 🔍 启动并保持 Trojan-Go 运行
|
- name: 🔍 启动并保持 Trojan-Go 运行
|
||||||
run: |
|
run: |
|
||||||
nohup trojan-go -config trojan-go-config.json & disown
|
nohup trojan-go -config trojan-go-config.json > /tmp/trojan-go.log 2>&1 & disown
|
||||||
sleep 10 # 等待代理启动
|
sleep 10 # 等待代理启动
|
||||||
# 检查 Trojan-Go 是否在运行
|
# 检查 Trojan-Go 是否在运行
|
||||||
if pgrep -x "trojan-go" > /dev/null
|
if pgrep -x "trojan-go" > /dev/null
|
||||||
then
|
then
|
||||||
echo "Trojan-Go 已成功启动并在运行中。"
|
echo "Trojan-Go 已成功启动并在运行中。"
|
||||||
else
|
else
|
||||||
echo "启动失败,检查日志文件 trojan-go.log 以获取更多信息。" && cat trojan-go.log && exit 1
|
echo "启动失败,检查日志文件 /tmp/trojan-go.log 以获取更多信息。" && cat /tmp/trojan-go.log && exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 4. 使用代理克隆仓库
|
# 4. 使用代理克隆仓库
|
||||||
@ -117,7 +117,9 @@ jobs:
|
|||||||
echo "Checking if Trojan-Go proxy is still running..."
|
echo "Checking if Trojan-Go proxy is still running..."
|
||||||
if pgrep -x "trojan-go" > /dev/null
|
if pgrep -x "trojan-go" > /dev/null
|
||||||
then
|
then
|
||||||
echo "Trojan-Go 已成功启动并在运行中。"
|
echo "Trojan-Go 仍在运行。"
|
||||||
else
|
else
|
||||||
echo "启动失败,检查日志文件 trojan-go.log 以获取更多信息。" && cat trojan-go.log && exit 1
|
echo "Trojan-Go 已停止运行,检查 /tmp/trojan-go.log 以获取更多信息。"
|
||||||
|
[ -f /tmp/trojan-go.log ] && cat /tmp/trojan-go.log || echo "日志文件不存在。"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user