-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatus.sh
More file actions
executable file
Β·53 lines (47 loc) Β· 1.37 KB
/
status.sh
File metadata and controls
executable file
Β·53 lines (47 loc) Β· 1.37 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# GigaEvo Memory Module - Status Check
echo "π GigaEvo Memory Module - Status"
echo "=================================="
echo ""
# Check PostgreSQL
echo "π¦ PostgreSQL:"
if docker ps -q -f name=postgres-gigaevo > /dev/null 2>&1; then
echo " Status: β
Running"
docker ps -f name=postgres-gigaevo --format " Container: {{.Names}} ({{.Status}})"
else
echo " Status: β Not running"
fi
echo ""
# Check Redis
echo "π¦ Redis:"
if docker ps -q -f name=redis-gigaevo > /dev/null 2>&1; then
echo " Status: β
Running"
docker ps -f name=redis-gigaevo --format " Container: {{.Names}} ({{.Status}})"
else
echo " Status: β Not running"
fi
echo ""
# Check API
echo "π API (port 8000):"
if curl -s http://localhost:8000/health > /dev/null 2>&1; then
echo " Status: β
Running"
HEALTH=$(curl -s http://localhost:8000/health 2>/dev/null)
echo " Health: $HEALTH"
echo " Docs: http://localhost:8000/docs"
else
echo " Status: β Not running"
fi
echo ""
# Check Web UI
echo "π¨ Web UI (port 7860):"
if curl -s http://localhost:7860 > /dev/null 2>&1; then
echo " Status: β
Running"
echo " URL: http://localhost:7860"
else
echo " Status: β Not running"
fi
echo ""
# Summary
echo "=================================="
echo "Run './start.sh' to start all services"
echo "Run './stop.sh' to stop all services"