Created attachment 205679 [details]
diff change daemon to log to syslog instead of /dev/null
patch for fossil to use daemon -S -T fossil
fossil runs daemon -f which forces all output of fossil to /dev/null, which makes it terrible to debug when something goes wrong at startup.
change this to daemon -S -T fossil, so logs go to syslog and tagged with 'fossil', so that it's much easier to tell when something is going wrong.
see attached diff.
Created attachment 205702 [details]
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.