Skip to main content

spawn_server_detached

Function spawn_server_detached 

Source
pub fn spawn_server_detached(
    session_name: Option<&str>,
    ssh_url: Option<&str>,
) -> Result<u32>
Expand description

Spawn the server as a detached background process

This is used when the client starts and no server is running. The server inherits the current working directory. ssh_url, when set, is forwarded as --ssh-url <URL> so the spawned daemon boots into an SSH authority instead of the default Authority::local() (see EditorServerConfig.startup_authority). Returns the PID of the spawned server (intermediate, not final daemon PID).