1
0
Fork 0
mirror of https://github.com/roles-ansible/role-grafana-kiosk.git synced 2024-08-16 10:09:49 +02:00
role-grafana-kiosk/templates/grafana-kiosk.service

19 lines
702 B
SYSTEMD
Raw Normal View History

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