-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstop.sh
More file actions
executable file
·39 lines (32 loc) · 1.22 KB
/
Copy pathstop.sh
File metadata and controls
executable file
·39 lines (32 loc) · 1.22 KB
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
34
35
36
37
38
39
#!/bin/bash
# FlashPoint V2 Stop Script
# Gracefully stops all services
set -e
echo "╔════════════════════════════════════════════════════════════╗"
echo "║ FlashPoint V2 - Shutdown Manager ║"
echo "╚════════════════════════════════════════════════════════════╝"
echo ""
echo "[1/3] Stopping Celery worker..."
if [ -f /tmp/celery_worker.pid ]; then
kill -TERM $(cat /tmp/celery_worker.pid) 2>/dev/null || true
rm -f /tmp/celery_worker.pid
echo "✅ Celery worker stopped"
else
echo "⚠️ Celery worker PID file not found"
fi
echo ""
echo "[2/3] Stopping Celery beat..."
if [ -f /tmp/celery_beat.pid ]; then
kill -TERM $(cat /tmp/celery_beat.pid) 2>/dev/null || true
rm -f /tmp/celery_beat.pid
echo "✅ Celery beat stopped"
else
echo "⚠️ Celery beat PID file not found"
fi
echo ""
echo "[3/3] Stopping infrastructure services..."
docker-compose down
echo ""
echo "✅ All services stopped"
echo ""
echo "To restart: ./start.sh"