Commit graph

3 commits

Author SHA1 Message Date
Niko Marmeladkov
e4aea785ee
discover daemon state dir from cmdline when environ is unreadable
When the daemon runs as a different user (e.g. via systemd), the client
cannot read /proc/<pid>/environ due to permissions. Fall back to
parsing the cmdline for -D / --state-dir flags, which are world-readable.

Fixes 'error: no logs for <service>' when client and daemon run as
different users.

v0.1.1
2026-07-07 13:52:13 +03:00
Niko Marmeladkov
f0d334b7dd children die when rss dies via PR_SET_PDEATHSIG
sets SIGTERM death signal in each child before exec, so if the
daemon exits (even by crash/SIGKILL), all managed services receive
SIGTERM and terminate. adds libc dependency for prctl.

includes getppid() == 1 check to handle the fork/prctl race.
2026-07-03 14:15:38 +03:00
Niko Marmeladkov
653b8d1612
initial: per-user process supervisor (rss)
- start/stop/restart/status/logs/enable/disable/list/daemon
- PID-file based state, no daemon, no root
- config.toml with placeholders, restart policies, env vars
- log tailing with -n/-f and stderr colorization
- supervisor per service with SIGTERM handling
2026-07-03 10:47:25 +03:00