Files
aitbc/scripts/service/stop-services.sh
oib 9b9c5beb23 ```
chore: enhance .gitignore and remove obsolete documentation files

- Reorganize .gitignore with categorized sections for better maintainability
- Add comprehensive ignore patterns for Python, Node.js, databases, logs, and build artifacts
- Add project-specific ignore rules for coordinator, explorer, and deployment files
- Remove outdated documentation: BITCOIN-WALLET-SETUP.md, LOCAL_ASSETS_SUMMARY.md, README-CONTAINER-DEPLOYMENT.md, README-DOMAIN-DEPLOYMENT.md
```
2026-01-24 14:44:51 +01:00

31 lines
779 B
Bash
Executable File

#!/bin/bash
# Stop all AITBC services
echo "🛑 Stopping AITBC Services"
echo "========================"
# Stop by PID if file exists
if [ -f .service_pids ]; then
PIDS=$(cat .service_pids)
echo "Found PIDs: $PIDS"
for PID in $PIDS; do
if kill -0 $PID 2>/dev/null; then
echo "Stopping PID $PID..."
kill $PID
fi
done
rm -f .service_pids
fi
# Force kill any remaining services
echo "Cleaning up any remaining processes..."
sudo fuser -k 8000/tcp 2>/dev/null || true
sudo fuser -k 9080/tcp 2>/dev/null || true
sudo fuser -k 3001/tcp 2>/dev/null || true
sudo fuser -k 3002/tcp 2>/dev/null || true
pkill -f "uvicorn.*aitbc" 2>/dev/null || true
pkill -f "server.py" 2>/dev/null || true
echo "✅ All services stopped!"