public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: www-apps/grafana-bin/files/
@ 2016-08-24 10:38 Pacho Ramos
  0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2016-08-24 10:38 UTC (permalink / raw
  To: gentoo-commits

commit:     ce09cb50694a0019580593835430e46f93b99594
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 24 10:37:28 2016 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Wed Aug 24 10:38:04 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce09cb50

www-apps/grafana-bin: use #!/sbin/openrc-run instead of #!/sbin/runscript

Package-Manager: portage-2.3.0

 www-apps/grafana-bin/files/grafana.initd.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-apps/grafana-bin/files/grafana.initd.2 b/www-apps/grafana-bin/files/grafana.initd.2
index 14b0b1f..21cfbe0 100644
--- a/www-apps/grafana-bin/files/grafana.initd.2
+++ b/www-apps/grafana-bin/files/grafana.initd.2
@@ -1,4 +1,4 @@
-#!/sbin/runscript
+#!/sbin/openrc-run
 # Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: www-apps/grafana-bin/files/
@ 2018-06-12  8:46 Patrice Clement
  0 siblings, 0 replies; 2+ messages in thread
From: Patrice Clement @ 2018-06-12  8:46 UTC (permalink / raw
  To: gentoo-commits

commit:     b69b2e648f0b668e3f5b8cec5e8a64cc33feed19
Author:     Aleksander Mistewicz <a.mistewicz <AT> gmail <DOT> com>
AuthorDate: Fri Jun  8 20:04:37 2018 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Tue Jun 12 08:46:14 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b69b2e64

www-apps/grafana: fix pid file permission.

Due to a fact that the service is running as a user named grafana, the process
did not have permissions to create a file in /run. It could be mitigated by
changing permissions of /run or running service as privileged user or avoiding
systemd.  This patch moves pid file to subdirectory and adds RuntimeDirectory
entry to the definition of the service.

Closes: https://bugs.gentoo.org/628328

Package-Manager: Portage-2.3.19, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/8765

 www-apps/grafana-bin/files/grafana.service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www-apps/grafana-bin/files/grafana.service b/www-apps/grafana-bin/files/grafana.service
index 66fefe67e3e..dcf1de295ee 100644
--- a/www-apps/grafana-bin/files/grafana.service
+++ b/www-apps/grafana-bin/files/grafana.service
@@ -9,10 +9,11 @@ User=grafana
 Group=grafana
 Type=simple
 Restart=on-failure
+RuntimeDirectory=grafana
 WorkingDirectory=/usr/share/grafana
 ExecStart=/usr/bin/grafana-server                      \
     --config=/etc/grafana/grafana.ini                  \
-    --pidfile=/run/grafana.pid                         \
+    --pidfile=/run/grafana/grafana.pid                 \
     cfg:default.paths.logs=/var/log/grafana            \
     cfg:default.paths.data=/var/lib/grafana            \
     cfg:default.paths.plugins=/var/lib/grafana/plugins


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-12  8:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-24 10:38 [gentoo-commits] repo/gentoo:master commit in: www-apps/grafana-bin/files/ Pacho Ramos
  -- strict thread matches above, loose matches on Subject: below --
2018-06-12  8:46 Patrice Clement

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox