Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/ai-brain-core / stop_manager.sh |
| Date | Not specified in source |
| Repository | Janady13/ai-brain-core |
| Revision | f7275582f13ada80bfb3b1008089800ca26f4a23 |
| Branch | main |
| Path or archive member | stop_manager.sh |
| Original SHA-256 | 3e6ca7a35d7a03dc9234cfdc0245a488d0983712c5a9aee56de8890615088bfc |
| Git blob SHA | 09cf55d4ef019942bd47c28f3cebe79cc145432e |
| Reading-copy SHA-256 | 3e6ca7a35d7a03dc9234cfdc0245a488d0983712c5a9aee56de8890615088bfc |
Every recorded occurrence
These 3 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/ai-brain-core / stop_manager.sh | main | f7275582f13ada80bfb3b1008089800ca26f4a23 | Open original |
| Janady13/ai-brain-core / stop_manager.sh | claude/agi-architecture-diagram-01GJ7CohfKvLb77yiKpHqd6d | 365850e27004318edd582881225024026b118c2d | Open original |
| Janady13/ai-brain-core / stop_manager.sh | healer-core | 0fe4cbbaa91912149f1a8e32205371ff67017268 | Open original |
Recovered source transcript
Download complete source text ↓24 lines · 0.8 KB
#!/bin/bash
source "/Users/josephanady/Desktop/AI_Brain/load_env.sh" # auto-inserted by update_ai_brain_env_paths.sh
# stop_manager.sh — stops the manager cleanly
PIDFILE="$HOME/Desktop/AI_Brain/status/manager.pid"
LOG="$HOME/Desktop/AI_Brain/logs/manager.log"
echo "🛑 [MANAGER] Stopping manager..."
if [[ -f "$PIDFILE" ]]; then
PID=$(cat "$PIDFILE" 2>/dev/null || true)
if [[ -n "$PID" ]]; then
kill -TERM "$PID" 2>/dev/null || true
# give it a moment
sleep 1
if ps -p "$PID" >/dev/null 2>&1; then
echo "Manager did not exit, killing..."
kill -KILL "$PID" 2>/dev/null || true
fi
fi
rm -f "$PIDFILE" 2>/dev/null || true
else
# fallback: pkill by manager.py
pkill -f "manager.py" || true
fi
echo "✅ [MANAGER] Stop requested. Check $LOG for details."