Skip to main content

Module daemon

Module daemon 

Source
Expand description

Liveness for one role workspace.

The client never detaches itself: run is the only launch verb, and backgrounding is the operator’s job — a visible terminal tab, launchd, or nohup. So no pid file is written and nothing signals a process by number. status asks the workspace socket instead: a client is running when its adapter socket answers the admin hello probe, and the registration’s mtime dates that client. The socket lives in the machine-level runtime directory (<runtime>/<digest>.sock) beside the <digest>.json that names the surface serving it, so the path is short enough to probe on every platform and the run/s spelling is only what operators read.

Structs§

StatusReport
Facts status reports for a live client.

Constants§

FAULT_SCAN_LIMIT
Event window scanned when status counts recorded faults.
NOT_CONNECTED
Byte-exact answer for a live client whose server link is down.
NOT_RUNNING
Byte-exact answer for every verb that needs a live client.

Functions§

fault_count
Count the session_fault events recorded in the client database.
status
Report the client serving workspace, and None when none is running.