Summary: | www/radicale: redirect logging to syslog | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | rz-rpi03 | ||||||
Component: | Individual Port(s) | Assignee: | Bernhard Froehlich <decke> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Some People | CC: | freebsd | ||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(decke) |
||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
rz-rpi03
2020-09-04 12:30:59 UTC
Thanks, it looks like I've missed that. The patch looks okay but I will do a few tests myself before I commit it. Created attachment 218372 [details]
use daemon(8), syslog.d and newsyslog.d to log to /var/log/radicale and rotate
I suggest this patch instead, which also modifies the daemon(8) call, but doesn't redirect radicale's log to /var/log/messages. Instead, it uses a dedicated /var/log/radicale that is rotated by newsyslog. Detailed instruction are included in the pkg-message.
Forgot to mention: patch has been tested in poudriere and works as expected in the jail. (In reply to Michael Bueker from comment #2) Sorry, but I think you are really overdoing it. It can be as simple as the first patch and does not deserve more complexity than that. Committed. Thanks a lot! A commit references this bug: Author: decke Date: Mon Oct 12 19:51:55 UTC 2020 New revision: 552147 URL: https://svnweb.freebsd.org/changeset/ports/552147 Log: www/radicale: Redirect logging to syslog since radicale 3 is now logging to stderr per default PR: 249102 Submitted by: iz-rpi03@hs-karlsruhe.de Changes: head/www/radicale/Makefile head/www/radicale/files/radicale.in A note to anyone reading this in the future: As implemented with this commit, all radicale log messages will always be written to /var/log/messages, because the default syslog priority of messages from daemon(8) is 'notice', and FreeBSD's default /etc/syslog.conf pulls in *.notice to /var/log/messages. If you set radicale to a verbose log setting like 'info' or 'debug', this will spam your /var/log/messages to hell and back. In order to avoid this, edit /etc/syslog.conf and add the following negative selector immediately before the line that ends in '/var/log/messages': !-radicale You can then create a file like /usr/local/etc/syslog.d/radicale.conf to redirect radicale's output to a file of your choosing, e.g. with the following content: !radicale *.* /var/log/radicale |