Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Deciding what lev daemon start / stop / status should do.

Each function here is the judgement part of a subcommand: given what was observed about the daemon, what has to happen and what gets printed. The observing is left to the caller, for the reason readiness::poll_until takes its predicate as an argument - the sequencing is worth testing, and only the probe needs a real socket or a real process.

Structs§

StartSteps
What has to happen before a daemon on the current build is running.

Enums§

StopFallback
What to do when the control channel would not accept a shutdown.

Functions§

start_steps
What lev must do to reach “a daemon on the current build is running”.
status_lines
The lines lev daemon status prints.
stop_fallback
Decide the fallback for a refused shutdown, given the recorded pid.
stop_outcome
The line lev daemon stop prints, or the error it fails with.