aynur
aynur is a minimal pm2-like process guardian for local Rust binaries.
It starts a small local daemon, keeps configured processes running, redirects stdout/stderr to log files, and exposes familiar commands such as start, stop, restart, reload, list, and logs.
Install
Quick Start
Start a binary:
By default, the app name is the binary file name. For example, the command above registers the app as gateway.
Set an explicit name:
Pass arguments to the managed binary after --:
List apps:
Stop, restart, reload, and delete:
View logs:
The command continues printing new stdout and stderr output until interrupted with Ctrl+C.
Clear logs for an app:
Commands
status is an alias for list.
Environment
State is stored in ~/.aynur by default:
~/.aynur/apps/
~/.aynur/logs/
~/.aynur/daemon.pid
~/.aynur/daemon.sock
Use AYNUR_HOME to choose another state directory:
AYNUR_HOME=/srv/aynur
At start time, aynur captures the current process environment. If --env-file is provided, values from that file are merged over the current environment.
Reload with the saved environment:
Refresh the saved environment from the current shell and the configured env file before restarting:
Behavior
- Linux/macOS only.
- Managed processes run in their own process group.
stopsendsSIGTERM, waits briefly, then sendsSIGKILL.- Unexpected exits are restarted automatically.
- Fast crash loops are marked as
erroredinstead of restarting forever. - stdout and stderr are appended to separate log files.
Scope
aynur intentionally keeps the first version small. It does not implement pm2 ecosystem files, cluster mode, startup integration, remote management, dashboards, or Windows support.