#!/bin/bash
# 启动 ViGent2 服务看门狗
# 监控 Qwen-TTS and LatentSync 服务健康状态

cd "$(dirname "$0")"

# 使用 backend 的虚拟环境 Python (包含 httpx 等依赖)
PYTHON_PATH="./backend/venv/bin/python"

if [ -f "$PYTHON_PATH" ]; then
    "$PYTHON_PATH" backend/scripts/watchdog.py
else
    echo "❌ 错误: 找不到 Python 解释器: $PYTHON_PATH"
    exit 1
fi
