Bug 239127 - net/traefik change daemon to log to syslog instead of /dev/null
Summary: net/traefik change daemon to log to syslog instead of /dev/null
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Thomas Zander
URL:
Keywords:
Depends on: 239144
Blocks:
  Show dependency treegraph
 
Reported: 2019-07-11 00:34 UTC by Tara
Modified: 2019-07-11 16:38 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (riggs)


Attachments
diff change daemon to log to syslog instead of /dev/null (622 bytes, patch)
2019-07-11 00:34 UTC, Tara
no flags Details | Diff
make a flag var for daemon output, so it can be re-configured in the future (637 bytes, text/plain)
2019-07-11 16:38 UTC, Tara
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tara 2019-07-11 00:34:56 UTC
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.
Comment 1 Tara 2019-07-11 16:38:07 UTC
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.