-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Looking at UnitStates:
pub struct UnitStates {
pub active_state: SystemdUnitActiveState,
pub load_state: SystemdUnitLoadState,
// Unhealthy is only calculated for SystemdUnitLoadState::loaded units based on !SystemdActiveState::active
// and !SystemdUnitLoadState::masked
pub unhealthy: bool,
// Time in microseconds since the unit state has changed ...
// Expensive to lookup, so config disable available - Use optional to show that
pub time_in_state_usecs: Option<u64>,
}I don't think that units that aren't active should automatically be called "unhealthy". They can be activating/deactivating, which says nothing about their health (unless they are stuck in that state for longer, but that's what time_in_state_usecs is for). In fact, for almost every program that chooses to handle SIGTERM on its own, deactivating state is to be expected.
A more accurate name for this field, in my opinion, would be unavailable or inactive. What do you think?
Metadata
Metadata
Assignees
Labels
No labels