summarylogtreecommitdiffstats
path: root/grafana.service
diff options
context:
space:
mode:
Diffstat (limited to 'grafana.service')
-rw-r--r--grafana.service20
1 files changed, 12 insertions, 8 deletions
diff --git a/grafana.service b/grafana.service
index 08cbaffe919..13e8dc020d4 100644
--- a/grafana.service
+++ b/grafana.service
@@ -1,19 +1,23 @@
[Unit]
-Description=Grafana server
-Documentation=http://docs.grafana.org
-After=network.target
+Description=Grafana service
+After=network.target postgresql.service mariadb.service mysqld.service
[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
+ExecStart=/usr/bin/grafana-server --config=/etc/grafana.ini
LimitNOFILE=10000
TimeoutStopSec=20
+SuccessExitStatus=0 2
+NoNewPrivileges=yes
+ProtectSystem=full
+ProtectHome=true
+PrivateTmp=true
+PrivateDevices=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectControlGroups=true
[Install]
WantedBy=multi-user.target