#!/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 "=== 重启 worker(GPU 机)===" echo "如需重启 GPU worker,请登录 GPU 机器执行:" echo " sudo systemctl restart hair"