Tsunagu (繋ぐ)
Service/daemon IPC framework for pleme-io applications. Provides reusable patterns for client-daemon communication so every app with a background service shares the same lifecycle management.
Components
daemon | DaemonProcess — PID file management, process lifecycle |
socket | SocketPath — XDG-compliant Unix socket path resolution |
health | HealthCheck — standardized liveness/readiness probes |
error | Unified error type |
Usage
[dependencies]
tsunagu = { git = "https://github.com/pleme-io/tsunagu" }
use tsunagu::{DaemonProcess, SocketPath};
let daemon = DaemonProcess::new("myapp");
if !daemon.is_running() {
daemon.write_pid()?;
}
Build
cargo build
cargo test --lib