Files
mortdecai-cli/scripts/status.sh
T

18 lines
549 B
Bash
Executable File

#!/bin/bash
# Check Mortdecai gateway status
echo "=== Gateway ==="
STATUS=$(curl -sf http://localhost:8500/v2/status 2>/dev/null)
if [ -n "$STATUS" ]; then
echo "$STATUS" | python3 -m json.tool 2>/dev/null || echo "$STATUS"
else
echo "DOWN — gateway not reachable on port 8500"
fi
echo ""
echo "=== Process ==="
pgrep -f "uvicorn gateway.api" -a 2>/dev/null || echo "Not running"
echo ""
echo "=== Recent Logs (errors only) ==="
grep -i "error\|warning\|traceback" /tmp/mortdecai-gateway.log 2>/dev/null | tail -5 || echo "No log file"