summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/grafana-bin/files/grafana.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/www-apps/grafana-bin/files/grafana.service b/www-apps/grafana-bin/files/grafana.service
index 66fefe67e3ee..dcf1de295eed 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