|Summary:||sysutils/daemontools: add support for syslog logging to the init script|
|Product:||Ports & Packages||Reporter:||Moritz Wilhelmy <m.wilhelmy>|
|Component:||Individual Port(s)||Assignee:||freebsd-ports (Nobody) <ports>|
|Severity:||Affects Only Me||CC:||m.wilhelmy, w.schwarzenfeld|
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 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 2018-01-12 22:38:05 UTC
Is this still relevant? No maintainer feedback!