monitord::units

Function is_unit_unhealthy

Source
pub fn is_unit_unhealthy(
    active_state: SystemdUnitActiveState,
    load_state: SystemdUnitLoadState,
) -> bool
Expand description

Check if we’re a loaded unit and if so evaluate if we’re acitive or not If we’re not Only potentially mark unhealthy for LOADED units that are not active