$ErrorActionPreference = 'Stop' throw 'Docker development copy: runtime control is disabled until container isolation is ready. See DOCKER_MIGRATION.md.' $Root = Split-Path -Parent $MyInvocation.MyCommand.Path $RuntimeBootstrap = Join-Path $Root 'app\runtime_bootstrap.py' $Supervisor = (Resolve-Path -LiteralPath (Join-Path $Root 'app\supervisor.py')).Path $Config = Join-Path $Root 'app\config.yaml' $FreezeCounters = Join-Path $Root 'start_freeze_counters.ps1' try { & $FreezeCounters } catch { Write-Warning "Freeze diagnostics did not start: $($_.Exception.Message)" } python -I -S -B $RuntimeBootstrap postgres-runtime -- verify --config $Config if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } python -I -S -B $RuntimeBootstrap supervisor -- --runtime-bootstrap-entrypoint $Supervisor --config $Config --background --no-dashboard --with-postgres $SupervisorExit = $LASTEXITCODE exit $SupervisorExit