Fix colibri daemon rc.d — 4 bugs resolved (v0.9.1) #16
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/colibri-rc-d-bugs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves 4 rc.d bugs that prevented colibri from running out of the box.
Also: enabled at boot, 0755 dirs, clawdie in colibri group.
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.