pkgbuilds/grafana/grafana.service

24 lines
507 B
SYSTEMD
Raw Normal View History

2024-04-12 07:21:50 -06:00
[Unit]
Description=Grafana service
After=network.target postgresql.service mariadb.service mysqld.service
[Service]
User=grafana
Group=grafana
WorkingDirectory=/usr/share/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