zinit_server is both an executable binary that can be run, and a library that can be used in Rust programs.
Installing the zinit-server executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install zinit_server
It will make the zinit-server command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall zinit_server uninstalls.
Adding zinit_server library as a dependency
Run this command in a terminal, in your project's directory:
cargo add zinit_server
To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:
zinit_server = "0.3.5"
The zinit_server library will be automatically available globally.
Read the zinit_server library documentation .
Back to the crate overview .
Readme
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 check
service. list - List all services
service. status - Get service status
service. start - Start a service
service. stop - Stop a service
service. restart - Restart a service
service. monitor - Register a new service
service. delete - Remove a service
logs. get - Get log entries
License
Apache-2.0