Files
unibots/dev-scripts/server/stop.sh
T
agent fc644ecd6e feat: import agents_and_robots platform as unibots (Matrix-out, unibus transport)
Reemplaza el scaffold del echobot por la plataforma completa de bots traida
desde ~/DataProyects/Github/agents_and_robots tras la operacion Matrix-out:
los bots ya no hablan por Matrix sino por el bus unibus (modelo todo-rooms +
E2E via shell/transportunibus sobre github.com/enmanuel/unibus/pkg/client).

- go.mod: replace de unibus -> ../unibus y de fn-registry -> ../../../.. (paths
  relativos reajustados a la nueva ubicacion dentro de fn_registry).
- app.md: bump a 0.2.0, descripcion + arquitectura + comandos + gotchas reales.
- modulo Go conservado como github.com/enmanuel/agents (sin reescribir imports).

agents_and_robots queda archivado como museo de la era Matrix.
2026-06-07 11:50:13 +02:00

33 lines
673 B
Bash
Executable File

#!/usr/bin/env bash
# stop.sh — detiene el launcher unificado
#
# Uso:
# ./dev-scripts/server/stop.sh
source "$(dirname "$0")/../_common.sh"
if ! is_launcher_running; then
dim " El launcher no está corriendo."
exit 0
fi
pid="$(read_launcher_pid)"
info "Deteniendo launcher (PID $pid)..."
kill -TERM "$pid" 2>/dev/null || true
# Wait up to 5s for graceful shutdown
for _ in {1..10}; do
kill -0 "$pid" 2>/dev/null || break
sleep 0.5
done
# SIGKILL if still alive
if kill -0 "$pid" 2>/dev/null; then
warn "Launcher no respondió a SIGTERM, enviando SIGKILL..."
kill -9 "$pid" 2>/dev/null || true
fi
rm -f "$(launcher_pid_file)"
ok "Launcher detenido"