Created attachment 205680 [details] diff change daemon to log to syslog instead of /dev/null diff change daemon to log to syslog instead of /dev/null patch to use daemon -S -T service currently this runs daemon -f which forces all output to /dev/null, which makes it terrible to debug when something goes wrong at startup. change this to daemon -S -T , so logs go to syslog and tagged, so that it's much easier to tell when something is going wrong. see attached diff.
Created attachment 205703 [details] make a flag var for daemon output, so it can be re-configured in the future make a flag var for daemon output, so it can be re-configured in the future This makes a var daemon_output_flags that can be overridden by rc/service in the future at a global level to make debugging easier, but sets sane defaults to dump logs to syslog and tagged with the name of the service. Thanks RhodiumToad, kevans91, swills and koobs from #freebsd for helping me get here.