21 lines
623 B
Bash
21 lines
623 B
Bash
|
|
#!/bin/bash
|
||
|
|
echo "=== 巡樓 Production 狀態 ==="
|
||
|
|
echo ""
|
||
|
|
echo "--- Nginx ---"
|
||
|
|
systemctl status nginx --no-pager -n 5 2>&1 | head -5
|
||
|
|
echo ""
|
||
|
|
echo "--- Gateway ---"
|
||
|
|
systemctl status haixun-gateway --no-pager -n 5 2>&1 | head -5
|
||
|
|
echo ""
|
||
|
|
echo "--- Worker ---"
|
||
|
|
systemctl status haixun-worker --no-pager -n 5 2>&1 | head -5
|
||
|
|
echo ""
|
||
|
|
echo "--- Node Worker ---"
|
||
|
|
systemctl status haixun-node-worker --no-pager -n 5 2>&1 | head -5
|
||
|
|
echo ""
|
||
|
|
echo "--- Docker Infra ---"
|
||
|
|
docker compose -f /home/daniel/thread-master/infra/docker-compose.yml ps 2>&1
|
||
|
|
echo ""
|
||
|
|
echo "--- Port 8890 ---"
|
||
|
|
ss -tlnp | grep 8890 || echo "gateway not listening"
|