#!/bin/bash set -e echo "============================================" echo " Mithal.space Monitor — Starting" echo "============================================" # Start monitor in background echo "[entrypoint] Starting monitor.py..." python /app/monitor.py & MONITOR_PID=$! echo "[entrypoint] Monitor started (PID: $MONITOR_PID)" # Start nginx in foreground echo "[entrypoint] Starting Nginx..." exec nginx -g "daemon off;"