FreeBSD rc.d service for hermes gateway (daemon(8) supervision) #1
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/freebsd-rcd-service"
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?
What
Adds
packaging/freebsd/hermes_daemon.in— an rc.d service that runshermes gateway rununderdaemon(8), modeled on Colibri's provencolibri_daemon.in.hermesuser/groupHERMES_HOME=/var/db/hermes(not the tmpfs home on live USB)stoptargets thedaemon(8)parent — avoids-rauto-restart fighting the stop-r), log redirection (-o)healthextra command for status checks/var/rundirs each bootAlso updates
README-FreeBSD.md(rc.d setup instructions) andscripts/install-freebsd.sh(service path note).Review hardening (2nd commit)
return 1s whenconfig.yamlis missing instead of only warning. Previously an unconfigured host would exit-immediately →daemon -rrespawn → tight crash loop. Aborting the start gives the operator a clear error.Notes
hermes_daemon_groupis used forinstall -gdir ownership;daemon -ucovers the runtime primary group — intentional.🤖 Generated with Claude Code