-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop.sh
More file actions
26 lines (20 loc) Β· 683 Bytes
/
stop.sh
File metadata and controls
26 lines (20 loc) Β· 683 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
#!/bin/bash
# SubGuard Application Stop Script
echo "π Stopping SubGuard Application..."
# Kill all Node.js processes (backend and frontend)
echo "π§ Stopping Node.js processes..."
pkill -f "node.*server.js"
pkill -f "react-scripts start"
pkill -f "nodemon"
# Kill Python NLP service
echo "π€ Stopping NLP service..."
pkill -f "python.*app.py"
pkill -f "flask"
# Kill any remaining processes on our ports
echo "π Freeing up ports..."
lsof -ti:3000 | xargs kill -9 2>/dev/null
lsof -ti:5000 | xargs kill -9 2>/dev/null
lsof -ti:5001 | xargs kill -9 2>/dev/null
echo "β
All SubGuard services stopped successfully!"
echo ""
echo "π To start again, run: ./start.sh"