Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/complete-agi-core / thataiguy/stop-all.sh |
| Date | Not specified in source |
| Repository | Janady13/complete-agi-core |
| Revision | 223c58f8857eb60c4d020e6d6feacdbfb482d71d |
| Branch | main |
| Path or archive member | thataiguy/stop-all.sh |
| Original SHA-256 | a7467fbf5db1b4df3ef54a829d07ad47910d48747cc4505f9b5cb3dd57526339 |
| Git blob SHA | d89c5c9bf159f477c2da6bfb1afc119044f94fbd |
| Reading-copy SHA-256 | a7467fbf5db1b4df3ef54a829d07ad47910d48747cc4505f9b5cb3dd57526339 |
Recovered source transcript
Download complete source text ↓26 lines · 0.6 KB
#!/bin/bash
# ThatAIGuyAGI - Stop All Services
echo "Stopping ThatAIGuyAGI services..."
PID_DIR="${HOME}/.thataiguy/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."