6 releases
Uses new Rust 2024
| 0.3.5 | Jan 5, 2026 |
|---|---|
| 0.3.4 | Jan 5, 2026 |
| 0.3.0 | Dec 26, 2025 |
#13 in #process-supervisor
220KB
5K
SLoC
zinit_server
Process supervisor server with OpenRPC interface.
Overview
zinit_server is the daemon component of the Zinit process supervisor. It manages services, handles process lifecycle, and exposes a JSON-RPC 2.0 API over Unix sockets.
Features
- Service lifecycle management (start, stop, restart, monitor)
- Process supervision with automatic restart
- Dependency ordering between services
- Resource usage monitoring (CPU, memory)
- Ring buffer logging
- Unix socket RPC interface
Installation
cargo install zinit_server
Usage
# Start the server in foreground
zinit-server
# The server listens on Unix socket at:
# ~/.hero/var/zinit.sock (or /var/run/zinit.sock)
RPC Methods
ping- Health checkservice.list- List all servicesservice.status- Get service statusservice.start- Start a serviceservice.stop- Stop a serviceservice.restart- Restart a serviceservice.monitor- Register a new serviceservice.delete- Remove a servicelogs.get- Get log entries
License
Apache-2.0
Dependencies
~7–12MB
~208K SLoC