Skip to main content

respawn_srv

Function respawn_srv 

Source
pub(super) async fn respawn_srv(
    launcher_exe_dir: &Path,
    paths: &DataPaths,
    sink: &StartupEventSink,
    why: SrvStop,
    srv: &mut Srv,
) -> Result<(), SrvSpawnError>
Expand description

srv died. End what it left running, then start it again and point the notification presenter at it. The new srv resumes the same agent sessions, so their old CLIs must be gone first, or two would run on one session. Err when the new srv could not start.