Skip to main content

write_readiness_file

Function write_readiness_file 

Source
pub fn write_readiness_file() -> Result<(), Error>
Expand description

Write the readiness sentinel file to signal that the daemon is fully initialized and accepting connections.

This must be called after load_all_capsules() completes (which includes await_capsule_readiness()). The CLI polls for this file instead of the socket file to avoid connecting before the accept loop is running.

ยงErrors

Returns an error if the file cannot be written. The caller should treat this as a fatal boot failure - without the sentinel, the CLI will never detect that the daemon is ready.