#!/bin/sh set -e # Start backup scheduler in background (if available) if [ -f "/usr/local/bin/backup_scheduler.py" ]; then python3 /usr/local/bin/backup_scheduler.py & echo "backup_scheduler started (PID=$!)" fi # Exec the main CMD (Node.js server) as foreground process exec "$@"