Files
FishServer/stop_recording.sh
2026-04-16 14:53:01 +08:00

12 lines
517 B
Bash
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.
#!/usr/bin/env bash
# 与 fish_api/uvicorn 的启动、停止无关;仅向已运行的 fish_api 发 HTTP stop适用于曾用 /api/v1/zed/recording/start 或 start_recording.sh --remote 启录的情形)。
# 基址:环境变量 FISH_API_BASE_URL 或 PUBLIC_BASE_URL见 fish_api/.env
# 用法(在仓库根目录):./stop_recording.sh
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$ROOT/fish_api"
PY="${PYTHON:-python3.8}"
exec "$PY" -m app.zed_record_cli stop "$@"