-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatus.sh
More file actions
33 lines (28 loc) · 825 Bytes
/
status.sh
File metadata and controls
33 lines (28 loc) · 825 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
# status.sh - Status script for PrivilegePredict
echo "Checking PrivilegePredict status..."
# Check if Docker is being used
if command -v docker &> /dev/null && [ -f "docker-compose.yml" ]; then
echo "Docker Compose services status:"
docker-compose ps
else
echo "Checking local services..."
# Check if backend is running
if pgrep -f "uvicorn" > /dev/null; then
echo "Backend: Running"
else
echo "Backend: Not running"
fi
# Check if frontend is running
if pgrep -f "npm run dev" > /dev/null; then
echo "Frontend: Running"
else
echo "Frontend: Not running"
fi
# Check if Neo4j is running
if pgrep -f "neo4j" > /dev/null; then
echo "Neo4j: Running"
else
echo "Neo4j: Not running (or not detected)"
fi
fi