0
0
Fourche 1
miroir de https://github.com/A6-9V/MQL5-Google-Onedrive.git synchronisé 2026-04-11 04:30:56 +00:00
MQL5-Google-Onedrive/scripts/container_entrypoint.sh
2026-02-09 16:19:26 +00:00

26 lignes
707 o
Bash
Fichier exécutable

#!/bin/bash
# ============================================================================
# Container Entrypoint Script for MQL5 Trading Automation
# ============================================================================
# Setup Xvfb (Virtual Framebuffer)
echo "Starting Xvfb on display $DISPLAY..."
Xvfb :99 -screen 0 1024x768x16 &
XVFB_PID=$!
# Wait for Xvfb to start
sleep 3
# Check if Xvfb is running
if ps -p $XVFB_PID > /dev/null; then
echo "✅ Xvfb is running (PID: $XVFB_PID)"
else
echo "❌ Xvfb failed to start"
fi
# Run the Python orchestrator
echo "Starting Python Orchestrator..."
python scripts/startup_orchestrator.py --monitor 0
# Keep the script running
wait $XVFB_PID