Skip to main content

run_service

Function run_service 

Source
pub fn run_service(
    settings: &Path,
    signals: impl FnOnce(ShutdownHandle) -> Result<(), Error>,
    log: &mut impl Write,
) -> Result<(), Error>
Expand description

urma-node service run. On Windows a start by the service manager is detected and served under it; otherwise this is a foreground run whose stop signal signals installs.