Files
FishServer/stop_recording.sh

12 lines
517 B
Bash
Raw Permalink Normal View History

#!/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 "$@"