Bug 265052 - net-mgmt/telegraf: Add rc.conf configured logfile path, use daemon -H for logfile rotation
Summary: net-mgmt/telegraf: Add rc.conf configured logfile path, use daemon -H for log...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Palle Girgensohn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-05 21:00 UTC by Craig Leres
Modified: 2022-07-05 21:22 UTC (History)
1 user (show)

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


Attachments
patch (1.91 KB, patch)
2022-07-05 21:00 UTC, Craig Leres
leres: maintainer-approval? (girgen)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer freebsd_triage 2022-07-05 21:00:04 UTC
Make the logfile path configurable via telegraf_logfile in /etc/rc.conf.

Use daemon -H to allow logfile rotation via newsyslog.

Note that /var/log/telegraf is owned by telegraf:telegraf but since the deamon process that logs telegraf output runs as root one could argue there's no reason for the logfile to not default to /var/log/telegraf.log. I can adjust my patch to make this change if that is preferable.
Comment 1 Craig Leres freebsd_committer freebsd_triage 2022-07-05 21:00:38 UTC
Created attachment 235091 [details]
patch