Bug 239124 - sysutils/nomad fix daemon to send output to syslog.
Summary: sysutils/nomad fix daemon to send output to syslog.
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: John Hixson
URL:
Keywords:
Depends on: 239144
Blocks:
  Show dependency treegraph
 
Reported: 2019-07-11 00:08 UTC by Tara
Modified: 2019-07-11 16:26 UTC (History)
1 user (show)

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


Attachments
patch for nomad to use daemon -S -T nomad (560 bytes, text/plain)
2019-07-11 00:08 UTC, Tara
no flags Details
make a flag var for daemon output, so it can be re-configured in the future (621 bytes, patch)
2019-07-11 15:45 UTC, Tara
no flags Details | Diff
set rc_daemon_output_flags and allow override. (622 bytes, patch)
2019-07-11 16:21 UTC, Tara
no flags Details | Diff
make a flag var for daemon output, so it can be re-configured in the future (623 bytes, patch)
2019-07-11 16:26 UTC, Tara
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tara 2019-07-11 00:08:10 UTC
Created attachment 205678 [details]
patch for nomad to use daemon -S -T nomad

nomad runs daemon -f which forces all output of nomad to /dev/null, which makes it terrible to debug when something goes wrong at startup.

change this to daemon -S -T nomad, so logs go to syslog and tagged with 'nomad', so that it's much easier to tell when something is going wrong.

see attached diff.
Comment 1 Tara 2019-07-11 15:45:02 UTC
Created attachment 205694 [details]
make a flag var for daemon output, so it can be re-configured in the future

This is a possible today solution for #239144.
Comment 2 Tara 2019-07-11 16:21:30 UTC
Created attachment 205700 [details]
set rc_daemon_output_flags and allow override.

per IRC discussion #freebsd RhodiumToad and kevans91 got me schooled in :${foo=bar} so now an RC script can override rc_daemon_output_flags if needed, for example an easier way to debug which can be done outside of this script.
Comment 3 Tara 2019-07-11 16:26:18 UTC
Created attachment 205701 [details]
make a flag var for daemon output, so it can be re-configured in the future