Skip to main content

spawn_srv

Function spawn_srv 

Source
pub async fn spawn_srv(
    launcher_exe_dir: &Path,
    paths: &DataPaths,
    srv_pipe_path: &str,
    sink: &StartupEventSink,
    restart_id: Option<&str>,
) -> Result<(SrvSpawnResult, Child), SrvSpawnError>
Expand description

Start srv and wait for it to be ready (spawn_srv_once). If srv finds data that needs preparing (a new version’s first start, pending migrations), it exits before writing anything; this then runs migrate --prepare on the splash and starts srv once more. A second “needs preparing” is a failure, never a loop.