2015-04-08 07:10:04 -05:00
|
|
|
[Unit]
|
|
|
|
Description=Starts and stops a single grafana instance on this system
|
|
|
|
Documentation=http://docs.grafana.org
|
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
2015-04-10 04:26:03 -05:00
|
|
|
EnvironmentFile=/etc/default/grafana-server
|
2015-04-08 09:58:05 -05:00
|
|
|
User=grafana
|
|
|
|
Group=grafana
|
|
|
|
Type=simple
|
2016-01-13 06:57:22 -06:00
|
|
|
Restart=on-failure
|
2015-04-10 04:26:03 -05:00
|
|
|
WorkingDirectory=/usr/share/grafana
|
2015-04-10 03:58:32 -05:00
|
|
|
ExecStart=/usr/sbin/grafana-server \
|
2015-04-09 10:18:04 -05:00
|
|
|
--config=${CONF_FILE} \
|
2015-08-04 08:44:07 -05:00
|
|
|
--pidfile=${PID_FILE} \
|
2015-04-10 04:26:03 -05:00
|
|
|
cfg:default.paths.logs=${LOG_DIR} \
|
2015-12-15 04:21:00 -06:00
|
|
|
cfg:default.paths.data=${DATA_DIR} \
|
|
|
|
cfg:default.paths.plugins=${PLUGINS_DIR}
|
2015-04-08 09:58:05 -05:00
|
|
|
LimitNOFILE=10000
|
2015-04-08 07:10:04 -05:00
|
|
|
TimeoutStopSec=20
|
2015-08-16 11:43:27 -05:00
|
|
|
UMask=0027
|
2015-04-08 07:10:04 -05:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|