Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/complete-agi-core / orchestrator/stop-all.sh |
| Date | Not specified in source |
| Repository | Janady13/complete-agi-core |
| Revision | 33aa84f2aa61cedbe010240ada7f4efbdfe795a7 |
| Branch | claude/improve-math-logic-ehIW1 |
| Path or archive member | orchestrator/stop-all.sh |
| Original SHA-256 | f7075102fc63a44e1587249e487f3e3f4d1de4ee5f3304e7bdc78a613810b326 |
| Git blob SHA | cb481c063ab8288f3cd2ea096835896544d4c1e3 |
| Reading-copy SHA-256 | f7075102fc63a44e1587249e487f3e3f4d1de4ee5f3304e7bdc78a613810b326 |
Recovered source transcript
Download complete source text ↓26 lines · 0.6 KB
#!/bin/bash
# AGIAGI - Stop All Services
echo "Stopping AGIAGI services..."
PID_DIR="${HOME}/.agi_core/pids"
# Stop by PID files
for pidfile in "${PID_DIR}"/*.pid; do
if [ -f "$pidfile" ]; then
pid=$(cat "$pidfile")
name=$(basename "$pidfile" .pid)
if kill -0 "$pid" 2>/dev/null; then
kill "$pid" 2>/dev/null
echo " Stopped $name (PID $pid)"
fi
rm -f "$pidfile"
fi
done
# Also kill by port
lsof -ti:8000 | xargs kill -9 2>/dev/null || true
lsof -ti:8001 | xargs kill -9 2>/dev/null || true
echo "All services stopped."