Expand description
daemon spawn — start (or confirm) the per-state plugin daemon.
Two modes, selected by dangerous_advanced.foreground:
- launcher (unset/false): probe the per-state daemon lock; if a
daemon already holds it, return readiness immediately, otherwise
re-exec this binary as
daemon spawnwithforeground: truedetached and return once it is up. - foreground (true): THIS process becomes the resident daemon —
it acquires the lock, launches every
daemon: trueplugin as<exec> daemon begin(leashed), binds a per-plugin socket, emits one readiness item, then serves until any plugin exits.
Streaming leaf: the foreground daemon yields the readiness item as its first line (the launcher’s handshake) and keeps the stream open while it serves; the launcher yields exactly one readiness item.
Modules§
Structs§
- Args
- Command
- Request
- Request
Dangerous Advanced - Response
Item - One daemon-spawn stream item. The foreground daemon emits this once it is ready (readiness handshake) and the launcher emits it once the daemon is confirmed up.