mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
b8674f4ec1
closes #16850
31 lines
1.1 KiB
Desktop File
31 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=Grafana instance
|
|
Documentation=http://docs.grafana.org
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
After=postgresql.service mariadb.service mysqld.service
|
|
|
|
[Service]
|
|
EnvironmentFile=/etc/sysconfig/grafana-server
|
|
User=grafana
|
|
Group=grafana
|
|
Type=notify
|
|
Restart=on-failure
|
|
WorkingDirectory=/usr/share/grafana
|
|
RuntimeDirectory=grafana
|
|
RuntimeDirectoryMode=0750
|
|
ExecStart=/usr/sbin/grafana-server \
|
|
--config=${CONF_FILE} \
|
|
--pidfile=${PID_FILE_DIR}/grafana-server.pid \
|
|
--packaging=rpm \
|
|
cfg:default.paths.logs=${LOG_DIR} \
|
|
cfg:default.paths.data=${DATA_DIR} \
|
|
cfg:default.paths.plugins=${PLUGINS_DIR} \
|
|
cfg:default.paths.provisioning=${PROVISIONING_CFG_DIR}
|
|
|
|
LimitNOFILE=10000
|
|
TimeoutStopSec=20
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|