pz-0.0.4 is not a library.
pz
pz is a local process manager. It runs commands through a daemon, stores process state in SQLite, and lets you inspect, stop, restart, and attach to processes later.
The CLI is only one client. The daemon owns the processes so commands keep running if the terminal, SSH session, or agent harness exits.
Install
Daemon
Use foreground mode for debugging:
Run Processes
Processes run with an empty environment by default. Add env explicitly:
Inspect And Control
Resources and ports:
Timeouts
Timeouts are enforced by the daemon.
Config
pz reads defaults from:
~/.config/pz.toml
Example:
[]
= false
= []
[]
= [
"/opt/homebrew/bin",
"/usr/local/bin",
"/usr/bin",
"/bin"
]
= "/path/to/java"
Config env values are used at spawn time. pz stores env keys and env-file paths, not env values.
Notes
- Commands are spawned directly, not through a shell.
- Processes are placed in their own process groups.
pz stopsignals the process group.- Logs are captured after spawn and can be read or followed later.
- If the daemon dies, previously running processes are marked
loston daemon restart.