summarylogtreecommitdiffstats
path: root/grafana.service
diff options
context:
space:
mode:
authorZhuoyun Wei2016-03-16 12:48:21 +0800
committerZhuoyun Wei2016-03-16 12:55:50 +0800
commiteccddee493df6f5f71d0f39ee0ec4cdd39716f81 (patch)
tree01cff45abd7bae076625d71ae1529ec75723f99a /grafana.service
downloadaur-eccddee493df6f5f71d0f39ee0ec4cdd39716f81.tar.gz
[grafana-bin] 2.6.0
Diffstat (limited to 'grafana.service')
-rw-r--r--grafana.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/grafana.service b/grafana.service
new file mode 100644
index 00000000000..08cbaffe919
--- /dev/null
+++ b/grafana.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Grafana server
+Documentation=http://docs.grafana.org
+After=network.target
+
+[Service]
+User=grafana
+Group=grafana
+Type=simple
+WorkingDirectory=/usr/share/grafana
+ExecStart=/usr/bin/grafana-server \
+ --config=/etc/grafana/grafana.ini \
+ cfg:default.paths.logs=/var/log/grafana \
+ cfg:default.paths.data=/var/lib/grafana
+LimitNOFILE=10000
+TimeoutStopSec=20
+
+[Install]
+WantedBy=multi-user.target