ops: appliance boot — wait for cameras/LiveKit, power button powers off

This commit is contained in:
Hermes
2026-08-28 05:45:11 +00:00
parent b5a2fe6440
commit abeea6256c
7 changed files with 103 additions and 10 deletions
+21 -4
View File
@@ -82,12 +82,29 @@ lightweight high-pass + soft-clip DSP path so streams still work.
Until the 1 s window is full, hops use the DSP fallback so LiveKit is
not silent on startup.
## systemd (enabled, 24/7)
## Appliance boot / power button
Two units, enabled for multi-user.target:
This box is meant to behave like an appliance:
- `livekit-server.service` — `/usr/local/bin/livekit-server` + `deploy/livekit-server.yaml` (:7880)
- `livekit-cameras.service` — `run.py` (Requires livekit-server)
- Power button while **off** → BIOS/OS boot → `livekit-cameras` waits for
USB cameras + LiveKit, then publishes.
- Power button while **on** → full `poweroff` (not sleep). Suspend/hibernate
targets are masked. Drop-in:
`/etc/systemd/logind.conf.d/50-power-button.conf`
## systemd (enabled)
- `livekit-server.service` — **local TEST** LiveKit on :7880 (autostart for now)
- `livekit-cameras.service` — publishers. `Wants=` the test server, does not
`Require` it. Destination is `LIVEKIT_URL` in `.env` (currently
`ws://127.0.0.1:7880`).
When the real/remote LiveKit exists, change `.env` `LIVEKIT_URL` and:
```bash
systemctl disable --now livekit-server
systemctl restart livekit-cameras
```
```bash
systemctl status livekit-cameras livekit-server