Bug 218814 - sysutils/graylog: update 2.2.2 -> 2.2.3 and fix daemon handling
Summary: sysutils/graylog: update 2.2.2 -> 2.2.3 and fix daemon handling
Status: Closed FIXED
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
Depends on:
Reported: 2017-04-22 14:13 UTC by Dave Cottlehuber
Modified: 2017-05-31 17:34 UTC (History)
3 users (show)

See Also:
thomas: maintainer-feedback+

v1 patch incomplete (3.79 KB, patch)
2017-04-22 14:13 UTC, Dave Cottlehuber
no flags Details | Diff
v2 patch with local logfiles (49.81 KB, patch)
2017-04-24 22:14 UTC, Dave Cottlehuber
no flags Details | Diff
v3 patch fixes double --no-pid-file fail (49.79 KB, patch)
2017-04-26 18:26 UTC, Dave Cottlehuber
dch: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cottlehuber freebsd_committer 2017-04-22 14:13:04 UTC
Created attachment 182001 [details]
v1 patch incomplete

# Changes

- bump version to 2.2.3
- previous daemon script would not actually stop graylog so lets steal the net-mgmt/riemann rc.d script
- merge in some more JVM tuning

The new rc.d script uses daemon(8) which ensures graylog starts & stops cleanly
however console output is lost.

The current rc.d script has a configurable log file parameter which clearly doesn't do anything at all. AFAICT we should add:
to our java_options, and then have a valid  log4j xml file, but that escapes
me for the moment. See http://logging.apache.org/log4j/2.x/ &
for more info. I'm sure we can get graylog to do this directly so expect an updated patch once upstream helps me out with the info.

# QA

- portlint OK
  WARN: Makefile: possible use of absolute pathname "/var/db/graylog".

- tested on 11.0Rp8 amd64 and 12.0-CURRENT amd64
- poudriere run OK on 10.3/11.0 both i386/amd64
Comment 1 Dave Cottlehuber freebsd_committer 2017-04-24 22:14:33 UTC
Created attachment 182061 [details]
v2 patch with local logfiles

# QA

- works on 12.0-CURRENT/amd64 and 11.0Rp8/amd64
- portlint OK (2 WARNs)
WARN: Makefile: possible use of absolute pathname "/var/db/graylog".
WARN: Makefile: possible use of absolute pathname "/var/log/graylog"

- poudriere matrix OK for 11.0/10.3 amd64+i386 

# commit message

sysutils/graylog: update 2.2.2 -> 2.2.3

- fix rc.d start/stop using daemon(8)
- ensure java version matches app requirements
- fix logging by using log4j2 correctly
- tweak JVM options for great good
- add single node usage notes to pkg-message
Comment 2 Dave Cottlehuber freebsd_committer 2017-04-26 18:26:37 UTC
Created attachment 182109 [details]
v3 patch fixes double --no-pid-file fail

We should be good to go here; I screwed up moving the patch from git to svn,
inadvertently left in a --no-pid-file line in the JVM options which blocks
the service from starting at all.
Comment 3 commit-hook freebsd_committer 2017-05-31 17:32:54 UTC
A commit references this bug:

Author: girgen
Date: Wed May 31 17:31:53 UTC 2017
New revision: 442244
URL: https://svnweb.freebsd.org/changeset/ports/442244

  Update to 2.2.3 and fix daemon handling

  PR:		218814
  Submitted by:	Dave Cottlehuber
  Approved by:	maintainer

Comment 4 Palle Girgensohn freebsd_committer 2017-05-31 17:34:04 UTC
I missed the great commit message, sorry about that!

Committed. Thanks!