الملفات
ghaymah-exam-Mohamed_Mousta…/q5-mithal-monitor/entrypoint.sh
Mohamed Moustafa c653222887 first commit
2026-07-27 23:27:12 +03:00

17 أسطر
432 B
Bash

#!/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;"