Skip to main content

lifecycle_steps

Function lifecycle_steps 

Source
pub fn lifecycle_steps(
    service_name: &str,
    action: Lifecycle,
) -> Result<Vec<Step>>
Expand description

Plan a start/stop of an installed service’s full unit family (main container + sidecars). Errors with Error::ServiceNotInstalled if the service isn’t installed.

systemd cascades start through Requires=, but never cascades stop — so every .container unit is named explicitly and the steps are ordered to respect dependencies: the main app unit stops first (before its db/cache sidecars) and starts last (after them).