Bug 203176 - sysutils/daemontools: add support for syslog logging to the init script
Summary: sysutils/daemontools: add support for syslog logging to the init script
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: Bryan Drewery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-17 16:48 UTC by Moritz Wilhelmy
Modified: 2018-01-12 22:38 UTC (History)
2 users (show)

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


Attachments
Patch that pipes svscan into logger(1) (1.20 KB, patch)
2015-09-17 16:50 UTC, Moritz Wilhelmy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz Wilhelmy 2015-09-17 16:48:38 UTC

    
Comment 1 Moritz Wilhelmy 2015-09-17 16:50:13 UTC
Created attachment 161151 [details]
Patch that pipes svscan into logger(1)
Comment 2 Bryan Drewery freebsd_committer 2015-09-17 16:50:27 UTC
I like this. From discussion in email we need to test and ensure nothing bad happens if syslogd stops.
Comment 3 Moritz Wilhelmy 2015-09-17 16:53:19 UTC
From the mails I sent to Bryan, here's a possible caveat I identified with my current solution:

I’m not completely sure what happens to the stdout pipe if syslogd crashes/is just not running. Does logger(1) buffer input until it can send it to syslogd or does it simply give up if the connection breaks? Might be worth finding out, because otherwise it might be safer to wrap it in a “while true” loop on the sh side…

This could also lead to a relatively ugly feedback-loop if svscan is supposed to supervise syslogd.

I guess my solution works for me. Also, syslogd has never crashed for me so far.
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-01-12 22:38:05 UTC
Is this still relevant?
No maintainer feedback!