feat: gateway management scripts (start, stop, status)

This commit is contained in:
Claude Code
2026-03-28 18:58:03 -04:00
commit e8a23f2b11
4 changed files with 72 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/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"