Skip to main content

install_service

Function install_service 

Source
pub fn install_service(
    home: &Path,
    entry: &Path,
    node: &str,
) -> Result<(ServiceUnit, ServiceState), TeamsError>
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 node at a different folder.