2020-06-30 17:44:05 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Grafana Kiosk
|
|
|
|
Documentation=https://github.com/grafana/grafana-kiosk.git
|
|
|
|
Documentation=https://grafana.com/blog/2019/05/02/grafana-tutorial-how-to-create-kiosks-to-display-dashboards-on-a-tv
|
|
|
|
Documentation=https://github.com/DO1JLR/role-grafana-kiosk.git
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User={{ grafana_kiosk.user }}
|
2020-06-30 18:56:31 +02:00
|
|
|
Environment="{{ grafana_kiosk.display }}"
|
|
|
|
{% if not grafana_kiosk.general.autofit | bool -%}
|
|
|
|
Enviroment="KIOSK_AUTOFIT={{ grafana_kiosk.general.autofit | ternary("true", "false") }}"
|
|
|
|
{%- endif %}
|
2020-06-30 17:44:05 +02:00
|
|
|
Environment="XAUTHORITY=/home/{{ grafana_kiosk.user }}/.Xauthority"
|
|
|
|
ExecStart=/usr/bin/grafana-kiosk -c /etc/grafana-kiosk/config.yml
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=graphical.target
|