Skip to main content

Module daemon

Module daemon 

Source
Expand description

Hot in-memory daemon lifecycle and client dispatch.

Modules§

www
Temp static file store + minimal localhost HTTP server.

Structs§

Client
EventHub
Fan-out hub for connected event listeners.

Enums§

Notice
Line-delimited JSON notice written to .daemon/events.sock.
Request
Response

Functions§

client_flush
daemon_dir
ensure_running
Start the daemon if it is not already running (Gradle-style invocation).
events_socket_path
Outbound notices for mailbox/event wakeup (Jan cron listens here).
flush
Flush dirty in-memory state to disk via the running daemon.
gc
Kill orphan unifier daemon run processes whose --home directory is gone.
http_port_path
Bound localhost HTTP port (written when the web server starts).
is_running
Whether a hot daemon is running for this store root.
is_tick_socket_request
Whether a request is allowed on .daemon/tick.sock.
ok_empty
pid_path
ping
read_pid
response_found
response_messages
response_ok
response_uuid
response_value
run_server
shutdown
socket_path
start
Start the hot daemon. With foreground, blocks in the current process (for tests).
status
Print daemon status to stdout.
stop
Stop the daemon, flushing dirty state first.
subscribe
Connect to the daemon event socket for wakeup notices.
tick_socket_path
Inbound tick lifecycle control (Jan drives start/phase/end here).
watch
Print notices from the event socket until the daemon disconnects.
www_dir
Temp static files served by the daemon HTTP listener.