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.
I made a comment on https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239144#c3
A commit references this bug:
Date: Fri Aug 2 11:13:06 UTC 2019
New revision: 507867
devel/fossil: enable logging to syslog, bump PORTREVISION
PR: 239126 (based on)
Submitted by: Tara <email@example.com>
I've committed the functionality to log to syslog, but without a reference to a global rc variable: I second John's comment on bug 239124, comment #8.