www-apps/grafana-bin: Add info about higher FD ulimit for 4.x
authorTobias Klausmann <klausman@gentoo.org>
Thu, 1 Dec 2016 13:04:31 +0000 (14:04 +0100)
committerTobias Klausmann <klausman@gentoo.org>
Thu, 1 Dec 2016 13:05:03 +0000 (14:05 +0100)
Package-Manager: portage-2.3.2

www-apps/grafana-bin/files/grafana.confd
www-apps/grafana-bin/grafana-bin-4.0.0-r1.ebuild [moved from www-apps/grafana-bin/grafana-bin-4.0.0.ebuild with 83% similarity]

index 207ef765f653fe3603dcb1908c80ee8966745748..0ad311de1de3d181bce5cab18805122c0621fe11 100644 (file)
@@ -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"
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 b46087709f6f6e51a3cdab728a73a510f452bc56..95285d1786977050b4b98a58396a081a9073a155 100644 (file)
@@ -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."
+}