commit:     620deff506d5d7ae1260fb2fa3f5e6188ad50af6
Author:     Tobias Klausmann <klausman <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  1 13:04:31 2016 +0000
Commit:     Tobias Klausmann <klausman <AT> gentoo <DOT> org>
CommitDate: Thu Dec  1 13:05:03 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=620deff5

www-apps/grafana-bin: Add info about higher FD ulimit for 4.x

Package-Manager: portage-2.3.2

 www-apps/grafana-bin/files/grafana.confd                            | 5 +++++
 .../{grafana-bin-4.0.0.ebuild => grafana-bin-4.0.0-r1.ebuild}       | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/www-apps/grafana-bin/files/grafana.confd 
b/www-apps/grafana-bin/files/grafana.confd
index 207ef76..0ad311d 100644
--- a/www-apps/grafana-bin/files/grafana.confd
+++ b/www-apps/grafana-bin/files/grafana.confd
@@ -5,3 +5,8 @@ GRAFANA_USER=grafana
 
 # The group to run your application as.
 GRAFANA_GROUP=grafana
+
+# Starting with 4.0, grafana uses a lot of file descriptors.
+# If you run into the default limit of 1024, uncomment this line and if needed,
+# bump its value.
+#rc_ulimit="-n 10000"

diff --git a/www-apps/grafana-bin/grafana-bin-4.0.0.ebuild 
b/www-apps/grafana-bin/grafana-bin-4.0.0-r1.ebuild
similarity index 83%
rename from www-apps/grafana-bin/grafana-bin-4.0.0.ebuild
rename to www-apps/grafana-bin/grafana-bin-4.0.0-r1.ebuild
index b460877..95285d1 100644
--- a/www-apps/grafana-bin/grafana-bin-4.0.0.ebuild
+++ b/www-apps/grafana-bin/grafana-bin-4.0.0-r1.ebuild
@@ -49,3 +49,9 @@ src_install() {
        fowners grafana:grafana /var/{lib,log}/grafana
        fperms 0750 /var/{lib,log}/grafana
 }
+
+post_install() {
+       einfo "Starting with version 4.0, Grafana is using a lot more file"
+       einfo "descriptors. You can bump the limit (by default 1024) by"
+       einfo "uncommenting the relevant line in /etc/conf.d/grafana."
+}

Reply via email to