spawn
Dynamically create child processes from parent services. :::warning Deprecatedsysg spawn is deprecated. Use sysg start --parent-pid <pid> --name <name> -- <command...>.
:::
Options
| Option | Description |
|---|---|
--name | Required. Unique identifier for spawned process |
--ttl | Time-to-live in seconds (optional) |
--parent-pid | Parent process ID (defaults to caller’s parent PID if not specified) |
--sys | Opt into privileged system mode. Requires running as root |
--log-level | Override the logging verbosity for the spawned process |
Examples
Preferred replacement with start
Spawn a worker process
Spawn with time limit
Process automatically terminates after 1 hour:Spawn with parent PID tracking
Requirements
Parent service must be configured with:See also
- Spawn configuration
status- View spawned processes