feat: gateway management scripts (start, stop, status)
This commit is contained in:
Executable
+17
@@ -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"
|
||||
Reference in New Issue
Block a user