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§
- Start
Steps - What has to happen before a daemon on the current build is running.
Enums§
- Stop
Fallback - What to do when the control channel would not accept a shutdown.
Functions§
- start_
steps - What
levmust do to reach “a daemon on the current build is running”. - status_
lines - The lines
lev daemon statusprints. - stop_
fallback - Decide the fallback for a refused shutdown, given the recorded pid.
- stop_
outcome - The line
lev daemon stopprints, or the error it fails with.