docs(rc): simplify colibri daemon service comments (Sam & Codex)
Some checks failed
CI / rust (pull_request) Has been cancelled
CI / markdown (pull_request) Has been cancelled

Keep the FreeBSD rc.d comments focused on the intended service contract instead of historical repair details.\n\nChecks: sh -n packaging/freebsd/colibri_daemon.in; git diff --check.
This commit is contained in:
Sam & Claude 2026-06-15 07:54:51 +02:00
parent 2e07613584
commit 8cf36a4264

View file

@ -58,8 +58,7 @@ supervisor_pidfile="${colibri_daemon_run_dir}/colibri-daemon-supervisor.pid"
# -p child pidfile (writes colibri-daemon PID — used by start/status)
# -r restart on crash, -t process title,
# -o append stdout/stderr to log.
# rc.subr already runs the command as ${colibri_daemon_user}; do not also pass
# daemon(8) -u or daemon(8) will try to drop privileges a second time.
# User selection is handled by rc.subr through colibri_daemon_user.
command="/usr/sbin/daemon"
command_args="-P ${supervisor_pidfile} -p ${pidfile} -r -t ${name} \
-o ${colibri_daemon_logfile} ${colibri_daemon_binary}"
@ -85,9 +84,8 @@ colibri_daemon_prestart()
install -d -o "${colibri_daemon_user}" -g "${colibri_daemon_group}" -m 0750 \
"$(/usr/bin/dirname "${colibri_daemon_logfile}")"
# Remove stale runtime files while rc.d is still root. The daemon process
# runs as colibri and cannot unlink a stale socket left behind by a prior
# root/corrupt manual start.
# Clear runtime files before starting so repeated service starts always
# bind a fresh socket and write fresh pidfiles.
rm -f "${colibri_daemon_socket}" "${pidfile}" "${supervisor_pidfile}"
# Provider keys are optional. Keep them in a root-owned env file instead of