The conf.d and initscript files for the current ebuild seems to miss several tuning possibility that is supported by Logstash upstream. Based on our chat with the current proxied maintainer, Tomas Mozes, I hereby send a bunch of updates that tries to improve the situation. The following changes has been made/options made possible: - create dedicated logstash user/group - passing arbitrary logstash CLI options - set heap size - set additional Java options - set pidfile - set user/group for logstash process - set logfile - toggle GC logging - set config directory - set open file limit - set nice for logstash process - optionally try harder to kill the process upon stop - logrotate both *.log and *.err files All the changes are based on what Logstash upstream supplies in their deb package. Please review, and discuss the proposed changes :) Reproducible: Always
Created attachment 414430 [details] logstash-1.5.4-r1.ebuild
Created attachment 414432 [details] logstash-bin-1.5.4-r1.ebuild
Created attachment 414434 [details] logstash.logrotate-r1 new logrotate rules
Created attachment 414436 [details] logstash.initd-r1 updated initscript
Created attachment 414438 [details] logstash.confd-r1 updated conf.d file
Thanks Ferenc for the patches, some of them got implemented to version 1.5.5: https://bugs.gentoo.org/show_bug.cgi?id=564608 The next step for 2.0.0 will be to add more and maybe use the upstream debian format of configuration.