pub fn spawn_daemon(extra_args: &[&str]) -> Result<()>
Spawn vs serve detached. Inherits no stdio so the CLI process is not kept alive by the daemon’s pipes.
vs serve
extra_args are passed after serve (e.g. --home=/tmp/x).
extra_args
serve
--home=/tmp/x