www-apps/grafana: fix pid file permission.
authorAleksander Mistewicz <a.mistewicz@gmail.com>
Fri, 8 Jun 2018 20:04:37 +0000 (22:04 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Tue, 12 Jun 2018 08:46:14 +0000 (10:46 +0200)
commitb69b2e648f0b668e3f5b8cec5e8a64cc33feed19
tree2f704c97338f7b754ed5f7d040c2f5264f67c76d
parent6f7bbf41ac63138985cef19f02c17c9345149678
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