forked from omnara-ai/omnara
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-stop.sh
More file actions
executable file
·32 lines (23 loc) · 923 Bytes
/
dev-stop.sh
File metadata and controls
executable file
·32 lines (23 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
# Stop development services for Agent Dashboard
echo "🛑 Stopping development services..."
# Stop Docker container
if sudo docker ps -q -f name=agent-dashboard-db-dev | grep -q .; then
echo "Stopping PostgreSQL container..."
sudo docker stop agent-dashboard-db-dev > /dev/null 2>&1
echo "PostgreSQL stopped"
else
echo "PostgreSQL container not running"
fi
# Kill any remaining processes on the ports
echo "Cleaning up any remaining processes..."
# Kill processes on port 8000 (backend)
lsof -ti:8000 | xargs kill -9 2>/dev/null || true
# Kill processes on port 8080 (unified server - MCP + FastAPI)
lsof -ti:8080 | xargs kill -9 2>/dev/null || true
# Kill processes on relay ports
lsof -ti:2222 | xargs kill -9 2>/dev/null || true
lsof -ti:8787 | xargs kill -9 2>/dev/null || true
# Kill relay viewer
lsof -ti:4173 | xargs kill -9 2>/dev/null || true
echo "✅ All services stopped"