fix(rc.d): use child pidfile + unique procname for colibri-daemon (Sam & Hermes) #17

Merged
clawdie merged 1 commit from fix/rc.d-procname-pidfile into main 2026-06-04 10:38:33 +02:00

1 commit

Author SHA1 Message Date
4f4d36b0ea fix(rc.d): use child pidfile + unique procname for colibri-daemon (Sam & Hermes)
Fix three bugs identified in live USB diagnostics (COLIBRI-XFCE-HANDOFF-04.JUN.2026):

1. procname collision: 'colibri-daemon' instead of '/usr/sbin/daemon'
   so service status finds OUR process, not tailscaled or any other
   daemon(8)-managed service.

2. pidfile flag: -p (child pidfile) instead of -P (supervisor pidfile)
   so the pidfile holds the colibri-daemon PID, which rc.subr can
   match against the unique procname.

3. Cascading bypass: fixing procname prevents rc.subr from skipping
   daemon(8) entirely. Process tree should now be:
   rc.d → daemon(8) → colibri-daemon (with crash restart)
2026-06-04 09:53:55 +02:00