Skip to main content

Crate systemg

Crate systemg 

Source
Expand description

Lightweight process manager for Unix services.

Modules§

charting
ASCII charting. ASCII charting for metrics visualization using our custom rasciigraph.
cli
CLI parsing. Command-line interface for Systemg.
config
Config loading. Configuration management for Systemg.
constants
Constants. Constants and configuration values for the systemg daemon.
cron
Cron scheduler. Cron scheduling for services.
daemon
Process daemon. Service management daemon.
diag
rustc-style diagnostics: structured, colored, actionable failure reports. rustc-style diagnostics for sysg.
error
Errors. Error handling for systemg.
inspect
The inspect command’s plan layer, rebuilt from first principles. The inspect command’s plan layer, rebuilt from first principles.
ipc
IPC with supervisor.
logs
Log streaming. Module for managing and displaying logs of system services.
logs_cmd
The logs command’s plan layer, rebuilt from first principles. The logs command’s plan layer, rebuilt from first principles.
loose_registry
Durable record of the loose manifests a supervisor is managing. Durable record of the loose manifests a supervisor is managing.
metrics
Metrics.
migrate_state
Offline migration of legacy __loose__ state into per-manifest projects. Offline migration of legacy __loose__ state into per-manifest projects.
opslot
Current-operation tracking for the control plane. Tracks the supervisor’s current in-flight operation so reads can report what a busy mutation is waiting on instead of leaving the caller in the dark.
privilege
Privilege dropping. Privilege and resource management helpers for service spawning.
purge
The purge command, rebuilt from first principles. The purge command, rebuilt from first principles.
reconcile
Reconciles supervisor bookkeeping against procfs and port ownership. Reconciles the supervisor’s bookkeeping against the actual machine.
restart
The restart command, rebuilt from first principles. The restart command, rebuilt from first principles.
runtime
Runtime paths and modes. Runtime paths and privilege modes.
selector
The shared command selector (-s/-p) resolution. The shared command selector: how -s/-p/project/service flags resolve to a target set, identically for start, stop, and restart.
spawn
Dynamic spawn management. Dynamic spawn manager for tracking and controlling spawned process trees.
start
The start command, rebuilt from first principles. The start command, rebuilt from first principles.
state_store
Per-project on-disk state layout. Per-project on-disk state layout.
status
Status tracking. Status management for services in the daemon.
stop
The stop command, rebuilt from first principles. The stop command, rebuilt from first principles.
supervisor
Supervisor daemon.
upgrade
Workload-preserving supervisor upgrade protocol. Validation and diagnostics for workload-preserving supervisor upgrades.
validate
Configuration validation and diagnostics. Configuration validation with human-friendly diagnostics.
xml
Indented XML serialization shared by state and command output. Shared XML serialization for persisted state and machine-readable output.