Skip to main content

get_main_pid

Function get_main_pid 

Source
pub async fn get_main_pid(
    connection: &Connection,
    full_service_name: &str,
) -> Result<u32, Error>
Expand description

Returns the PID of a systemd service

§Arguments

  • connection: zbus connection
  • full_service_name: Full name of the service name with ‘.service’ in the end