Files
MoneyFlix/tools/lab/stop.sh
XikaandCursor 1c67b0744f feat: add MoneyFlix lab smoke stack and fix redirector env loading (BIT-24693)
Lab bootstrap scripts exercise CRM PHP, Node redirector, health endpoints, and
MySQL analytics on 10.10.50.17. Bearer auth is checked before session dev-login;
redirector reads CRM_API_URL at fetch time so dotenv applies correctly.

Paperclip-Task: BIT-24693
Paperclip-Run: 3467cbf0-a91f-4cb0-808a-ccb043de28d3
Co-authored-by: Cursor <[email protected]>
2026-06-08 13:06:03 +00:00

19 lines
436 B
Bash
Executable File

#!/usr/bin/env bash
# Stop MoneyFlix lab services
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
PID_DIR="$ROOT/tools/lab/.pids"
for name in crm redirector; do
pidfile="$PID_DIR/$name.pid"
if [[ -f "$pidfile" ]]; then
pid="$(cat "$pidfile")"
if kill -0 "$pid" 2>/dev/null; then
kill "$pid" 2>/dev/null || true
echo "Stopped $name (pid $pid)"
fi
rm -f "$pidfile"
fi
done