Bug 232813 - net-mgmt/prometheus2: Remove syslog and newsyslog config files from port
Summary: net-mgmt/prometheus2: Remove syslog and newsyslog config files from port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks: 232706
  Show dependency treegraph
 
Reported: 2018-10-30 12:07 UTC by David O'Rourke
Modified: 2019-01-04 10:56 UTC (History)
1 user (show)

See Also:
dor.bsd: maintainer-feedback+


Attachments
net-mgmt/prometheus2: Remove syslog config files (3.32 KB, patch)
2018-10-30 12:07 UTC, David O'Rourke
dor.bsd: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David O'Rourke 2018-10-30 12:07:40 UTC
Created attachment 198771 [details]
net-mgmt/prometheus2: Remove syslog config files

This patch removes the syslog and newsyslog config files for now for a few reasons.

  - I'd originally intended them to be examples that a user could take and use if they wanted to redirect Prometheus syslog entries to their own log files, however, they were turned into @sample entries during commit.
  - Without a reload of syslogd, simply placing the config files will do nothing and no instructions were included in pkg-message saying that the user should reload syslogd.
  - I am currently unsure if the package should be changing the users syslog config (although, after the @sample change, they did have to request it via the SYSLOG option)
  - If they do request it, how to reload the syslog so that the config file is used right away?

Basically, I have far too many questions surrounding the feature now, so I'm removing it entirely until I have considered it further and spoken with some other porters on how they have handled syslog related things.

I may add them back as examples again in the future with a suitable pkg-message about their existance.

With this change, Prometheus will still sends its output to syslog, but without specific configuration the messages will be routed according to however the user has already configured their syslogd.

This patch should also fix #232706, as there will be no syslog configs to be copying around anymore.
Comment 1 David O'Rourke 2018-10-30 12:08:15 UTC
Comment on attachment 198771 [details]
net-mgmt/prometheus2: Remove syslog config files

Approving my own diff
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-10-31 01:45:00 UTC
A commit references this bug:

Author: swills
Date: Wed Oct 31 01:44:04 UTC 2018
New revision: 483541
URL: https://svnweb.freebsd.org/changeset/ports/483541

Log:
  net-mgmt/prometheus2: Remove syslog and newsyslog config files

  While here, pet portlint

  PR:		232813
  Submitted by:	David O'Rourke <dor.bsd@xm0.uk> (maintainer)

Changes:
  head/net-mgmt/prometheus2/Makefile
  head/net-mgmt/prometheus2/files/newsyslog.conf.in
  head/net-mgmt/prometheus2/files/syslog.d.conf.in
  head/net-mgmt/prometheus2/pkg-plist
Comment 3 Steve Wills freebsd_committer freebsd_triage 2018-10-31 01:51:28 UTC
Committed, thanks!
Comment 4 Yuri Victorovich freebsd_committer freebsd_triage 2018-10-31 03:45:27 UTC
> Without a reload of syslogd, simply placing the config files will do nothing

newsyslog(8) does load configuration when it changes because it is started on schedule by crontab(1).

For syslogd(8) this is true that it doesn't reload its configs, but this is rather a problem than the right behavior. I suggested to fix this: big#232838