Files
2026-06-16 21:15:19 +08:00

20 lines
479 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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"