Skip to main content

Module daemon

Module daemon 

Source
Expand description

Background daemon: process lifecycle, output capture, and reverse proxy.

Each session runs a single daemon process that listens on a Unix domain socket. The daemon manages child processes (process_manager), captures their stdout/stderr to log files (log_writer), evaluates wait conditions (wait_engine), and optionally runs a subdomain-based reverse proxy (proxy).

The daemon is spawned automatically by the CLI on first use (see spawn) and exits when a Shutdown request is received.

Modulesยง

actor
log_index
Binary sidecar line index for log files.
log_writer
port_allocator
process_manager
proxy
server
spawn
wait_engine
watcher
File watcher with debounce for watch-mode process restarts.