forked from fspecii/ace-step-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop-all.sh
More file actions
executable file
·33 lines (28 loc) · 811 Bytes
/
stop-all.sh
File metadata and controls
executable file
·33 lines (28 loc) · 811 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
33
#!/bin/bash
# ACE-Step UI Stop All Services Script
echo "Stopping all ACE-Step services..."
if [ -f logs/api.pid ]; then
API_PID=$(cat logs/api.pid)
if kill -0 $API_PID 2>/dev/null; then
echo "Stopping API server (PID: $API_PID)..."
kill $API_PID
fi
rm logs/api.pid
fi
if [ -f logs/backend.pid ]; then
BACKEND_PID=$(cat logs/backend.pid)
if kill -0 $BACKEND_PID 2>/dev/null; then
echo "Stopping backend (PID: $BACKEND_PID)..."
kill $BACKEND_PID
fi
rm logs/backend.pid
fi
if [ -f logs/frontend.pid ]; then
FRONTEND_PID=$(cat logs/frontend.pid)
if kill -0 $FRONTEND_PID 2>/dev/null; then
echo "Stopping frontend (PID: $FRONTEND_PID)..."
kill $FRONTEND_PID
fi
rm logs/frontend.pid
fi
echo "All services stopped!"