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
Owner

Resolves 4 rc.d bugs that prevented colibri from running out of the box.

  1. rc.subr command override (colibri_daemon_program → colibri_daemon_binary)
  2. Procname match (daemon:)
  3. Double privilege drop (removed -u from daemon args)
  4. Pidfile permissions (chmod 644 in poststart)

Also: enabled at boot, 0755 dirs, clawdie in colibri group.

Resolves 4 rc.d bugs that prevented colibri from running out of the box. 1. rc.subr command override (colibri_daemon_program → colibri_daemon_binary) 2. Procname match (daemon:) 3. Double privilege drop (removed -u from daemon args) 4. Pidfile permissions (chmod 644 in poststart) Also: enabled at boot, 0755 dirs, clawdie in colibri group.
clawdie added 1 commit 2026-06-04 12:58:22 +02:00
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.
clawdie merged commit 14e04d30de into main 2026-06-04 12:58:26 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clawdie/clawdie-iso#16
No description provided.