Spaces:
Sleeping
Sleeping
File size: 781 Bytes
47bb6d7 e2a096c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
# 1. 启动 Nginx 到后台
# 使用 -g "daemon off;" 的相反操作,让它退到后台,或者直接使用默认启动方式
echo "Starting Nginx in background..."
nginx -g "daemon off;" & # 这里的 & 会让它进入后台
# 或者如果你的 nginx 包默认不是前台运行,直接运行 nginx 即可
# nginx
# 2. 检查 Nginx 是否启动成功
if [ $? -eq 0 ]; then
echo "Nginx started successfully."
else
echo "Failed to start Nginx."
exit 1
fi
# 3. 前台运行 EasyTier
echo "Starting EasyTier Core in foreground..."
# --console-log-level "info"
exec /app/easytier-core -l "ws://127.0.0.1:7880" --no-tun --bind-device "false" --disable-ipv6 --disable-p2p --disable-udp-hole-punching --relay-network-whitelist "${RELAY_NETWORK_WHITELIST}" |