pi-register
aien-dev/pi-register
Brought by drakestapleton
GitHub aien-dev/pi-register#3 (code only)
Apply it
git checkout -b patch-3ed773c0ef3ed886 dc96abda11dc2dd853cb8fc870ee01f2479d2066 curl -fsSL https://interplane.io/drakestapleton/pi-register/patches/3ed773c0ef3ed886.patch | git am
Provenance
github-import 1
aien-dev/pi-register
3
1a33c55bd62ecb84654008a1ed67f31e4df080bb
{"kind":"github-import","owner":"aien-dev","repo":"pi-register","number":3,"url":"https://github.com/aien-dev/pi-register/pull/3","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:38Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/README.md b/README.md index ba56977..59ed7f2 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ A register of the services on a Linux server (Debian/Ubuntu with systemd), so one command tells you what the machine runs and why. -Services are listed in `register.toml` (see the example in this folder). Fields: name, purpose, unit, category, owner, port, depends_on, files, secrets (a path only, never the secret), health (a shell command that exits 0 when healthy), boot, notes. +Services are listed in `register.toml`. The one in this folder is the Pi hub's own register and doubles as the example. Fields: name, purpose, unit, category, owner, port, depends_on, files, secrets (a path only, never the secret), health (a shell command that exits 0 when healthy), boot, notes. Required: name, purpose, unit, category, owner, boot. The rest are optional. A `unit` without a suffix means `<unit>.service`; write `.timer`, `.socket` and so on in full. `depends_on` and `files` are recorded and shown, not enforced. ## Commands - `pi-register status`: table of every service, whether its unit is active, enabled at boot, and healthy. - `pi-register show <name>`: everything known about one service. - `pi-register start|stop|enable|disable <name>`: wraps systemctl; unknown names are refused. -- `pi-register check`: every registered unit must exist; enabled units not in the register are listed as UNREGISTERED (base-system units are ignored via a built-in list). +- `pi-register check`: every registered unit must exist; enabled service units not in the register are listed as UNREGISTERED (base-system units are ignored via a built-in list; timers and other unit types are not scanned for unregistered ones). Exits with an error if any problem is found. - `pi-register doc`: prints a Markdown page describing the machine. Register location: `--register <path>`, else `/etc/pi-register/register.toml`, else `./register.toml`. -Build: `cargo build --release`. No network calls. License: AGPL-3.0-or-later (see LICENSE). +Build: `cargo build --release`. `pi-register` itself makes no network calls; the `health` commands in the register run in a shell and may. License: AGPL-3.0-or-later (see LICENSE).