#!/usr/bin/env bash # --------------------------------------------------------------------------- # stop.command — Equivalente macOS/Linux de stop.bat. # Delega TODO a runtime_control.py para garantizar que solo se detiene MP # Manager (nunca otro proyecto Python que escuche en el puerto 8000). # # Acepta los mismos flags que el .bat, p.ej.: # ./stop.command --force (apaga también instancias huérfanas sin server_info) # --------------------------------------------------------------------------- set -euo pipefail source "$(dirname "${BASH_SOURCE[0]}")/mp_common.sh" banner "MP Manager - Deteniendo Servidor Monte Providencia" PY="$(require_venv)" || { hold_window; exit 1; } set +e "$PY" runtime_control.py stop "$@" RC=$? set -e hold_window exit "$RC"