Files
2026-10-17 05:23:01 +02:00

14 lines
427 B
Bash
Executable File

#!/usr/bin/env bash
# Stops the test server (containers and channel encoders); the data stays in $DATA.
set -uo pipefail
HERE=$(cd "$(dirname "$0")" && pwd)
export DATA=${DATA:-$HOME/.local/share/playfin-testserver}
export UID GID
GID=$(id -g)
docker compose -f "$HERE/compose.yml" down
for pidfile in "$DATA"/run/ch*.pid; do
[ -f "$pidfile" ] || continue
kill "$(cat "$pidfile")" 2>/dev/null
rm -f "$pidfile"
done