#!/bin/bash
cd /root/cma-management/backend
pkill -f "port 8010.*cma" 2>/dev/null
sleep 2
/root/cma-management/backend/venv/bin/python3 -m uvicorn app.main:app --host 0.0.0.0 --port 8010 --workers 1 --limit-max-requests 10000 --timeout-keep-alive 30 --no-access-log &
disown
sleep 5
pgrep -af "port 8010"