Skip to main content

install_service

Function install_service 

Source
pub fn install_service(
    dry_run: bool,
    force: bool,
    manager: Option<ServiceManager>,
) -> Result<()>
Expand description

Install the agent as a system service.

Args:

  • dry_run: If true, print the service file without installing.
  • force: If true, overwrite an existing service file.
  • manager: Service manager to use, or auto-detect if None.

Usage:

install_service(false, false, None)?;