Skip to main content

run

Function run 

Source
pub async fn run(registry: ServiceRegistry, opts: DaemonOptions) -> Result<()>
Expand description

Runs the daemon until a SIGTERM/SIGINT or a built-in shutdown op, then drains every service and removes the socket.

Binding the socket doubles as the single-instance lock (see single_instance).