Skip to main content

get_active_state

Function get_active_state 

Source
pub async fn get_active_state(
    connection: &Connection,
    full_service_name: &str,
) -> String
Expand description

Returns the load state of a systemd unit

Returns invalid-unit-path if the path is invalid

§Arguments

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