Skip to main content

Module server

Module server 

Source
Expand description

The daemon server core: bind the control socket, accept NDJSON connections, route envelopes to services (or built-in ops), and shut down gracefully.

Structs§

DaemonOptions
Configuration for a run invocation.

Functions§

resolve_socket
Resolves the control-socket path: the explicit override, or the per-user default from paths::socket_path.
run
Runs the daemon until a SIGTERM/SIGINT or a built-in shutdown op, then drains every service and removes the socket.
run_with_shutdown
Like run, but with a shared registry and an externally-owned token.