# felhom-mgmt-watchdog.service (TASK G1) — install as /etc/systemd/system/felhom-mgmt-watchdog.service. # # LAYER 2 (auto-heal without login): a DUMB oneshot that runs /usr/local/sbin/felhom-mgmt-watchdog, # triggered every ~60s by felhom-mgmt-watchdog.timer. It recreates a missing /run/sshd and clears a # start-limited stock sshd — so a management-plane lockout self-corrects in ≤1 tick with NOBODY logged # in and WITHOUT the felhom-agent binary running (the agent only OBSERVES/reports; the heal must not # depend on it — SPIKE-felhom-sshd-2026-07-05 finding #9 / TASK G1 trap 1). # # CRITICAL: this unit MUST NOT declare `RuntimeDirectory=` — that directive (with value `sshd`) is the # incident it exists to fix. It writes only to /run (dir + heal marker) as root; no state dir needed. [Unit] Description=Felhom management-plane watchdog (privsep-dir auto-heal; agent-independent) # Ordering only — the timer drives cadence; no hard dependency so it runs even in degraded boots. After=systemd-tmpfiles-setup.service [Service] Type=oneshot ExecStart=/usr/local/sbin/felhom-mgmt-watchdog # Deliberately NO RuntimeDirectory=, NO PrivateTmp, NO sandboxing that would hide /run/sshd from it.