#!/usr/bin/env bash
# 重启测试环境。用法: ./scripts/restart.sh           —— 重启全部服务
#                    ./scripts/restart.sh livekit    —— 只重启指定服务
set -euo pipefail
cd "$(dirname "$0")/.."

docker compose restart "$@"
echo "已重启。OpenIM 完全就绪约需 30-60 秒，查看状态: docker compose ps"
