Skip to main content

install_service

Function install_service 

Source
pub fn install_service(
    root: &Path,
    entry: &Path,
    node: &str,
) -> Result<(ServiceUnit, ServiceState), OrchestratorError>
Expand description

Render the unit, hand it to the platform’s service manager, and start it.

Refuses a label the manager already holds rather than replacing it: two homes share one label, so an install that silently took it over would point a running service at a different folder.