Skip to main content

start_daemon

Function start_daemon 

Source
pub fn start_daemon(
    addr: SocketAddr,
    config: Config,
    out: &Output,
) -> Result<()>
Expand description

Starts the server as a background daemon (Unix only).

Spawns the current executable as a detached child process with stdout/stderr redirected to a log file, then writes the PID.

ยงErrors

The data directory, log file, PID file or child process cannot be made.