save code

This commit is contained in:
Ubuntu
2026-06-16 21:15:19 +08:00
parent a86125246e
commit d2642b66f8
3 changed files with 28 additions and 9 deletions
Executable
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
# 重启网关 + worker 服务
set -e
cd "$(dirname "$0")"
echo "=== 重启网关 ==="
sudo systemctl restart hair-gateway
sudo systemctl status hair-gateway --no-pager -l | head -8
echo ""
echo "=== 网关池状态 ==="
sleep 3
curl -s http://127.0.0.1:8080/gateway-health 2>/dev/null || echo "⚠ 网关未就绪"
echo ""
echo "=== 重启 workerGPU 机)==="
echo "如需重启 GPU worker,请登录 GPU 机器执行:"
echo " sudo systemctl restart hair"