Skip to main content

Module daemon

Module daemon 

Source
Expand description

Foreground native node lifecycle shared by rings run and external daemon binaries.

Opens authoritative persistent NodeStores, builds a Processor, installs optional NativeDaemonHooks (DHT registrations, protocol/Kleisli backends, cooperative shutdown), starts the application service, delegation signing-horizon task, internal/external JSON-RPC HTTP endpoints, BootstrapSupervisor, optional DNS relay, optional TUN gateway, and optional onion HTTP proxy, and performs cooperative shutdown on SIGINT/SIGTERM.

Structs§

NativeNodeRunOptions
Runtime options for run_foreground_node.

Constants§

FOREGROUND_CLEANUP_TIMEOUT
Maximum wall-clock bound allotted to each foreground shutdown step (gateway, processor listener drain, and Processor::close).

Traits§

NativeDaemonHooks
Extension hooks allowing external service binaries to attach custom DHT registrations, Provider protocols or onion Kleisli backends, and cooperative shutdown steps onto the standard native node daemon lifecycle.

Functions§

run_foreground_node
Run a full foreground native Rings node until SIGINT/SIGTERM or a fatal task exit.