#!/bin/bash
# HZHub AI 后端服务重启脚本
# 功能：重启后台运行的 hzhub-ai Spring Boot 服务

PROJECT_DIR="$(cd "$(dirname "$0")" && pwd)"

echo "========================================="
echo "重启 hzhub-ai 后端服务"
echo "========================================="

# 停止服务
"$PROJECT_DIR/stop.sh"

# 等待两秒确保完全停止
sleep 2

# 启动服务
"$PROJECT_DIR/start.sh"