Fix colibri daemon rc.d — 4 bugs resolved (v0.9.1) #16

Merged
clawdie merged 1 commit from fix/colibri-rc-d-bugs into main 2026-06-04 12:58:26 +02:00

1 commit

Author SHA1 Message Date
Clawdie Operator
661a957c90 Fix colibri daemon rc.d — 4 bugs resolved (v0.9.1)
Bug 1: rc.subr line 1120 overrides command= with _program.
        Renamed colibri_daemon_program → colibri_daemon_binary so
        daemon(8) is actually invoked instead of colibri-daemon directly.

Bug 2: procname="/usr/sbin/daemon" didn't match daemon(8)'s process
        title ("daemon: name[pid] (daemon)"). Fixed to "daemon:".

Bug 3: "failed to set user environment" — daemon(8) -u and rc.subr's
        su both tried to drop privileges. Removed -u from daemon args.

Bug 4: Pidfile 0600 blocked non-root 'service status'. Added chmod 644
        in poststart.

Bonus: COLIBRI_STAGE_ENABLE defaults to YES, dirs chmod 0755.
        Added clawdie to colibri group for CLI access.

Tested: service start/stop/status (root + clawdie), CLI status/tasks.
2026-06-04 10:58:03 +00:00