2020-06-30 17:44:05 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Grafana Kiosk
|
|
|
|
Documentation=https://github.com/DO1JLR/role-grafana-kiosk.git
|
2020-07-02 14:33:02 +02:00
|
|
|
Documentation=https://github.com/grafana/grafana-kiosk.git
|
2020-06-30 17:44:05 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User={{ grafana_kiosk.user }}
|
2020-07-02 14:33:02 +02:00
|
|
|
Restart = always
|
|
|
|
RestartSec=5s
|
|
|
|
Type=simple
|
2020-07-02 15:23:14 +02:00
|
|
|
EnvironmentFile=/home/{{ grafana_kiosk.user }}/.grafana-kiosk.env
|
|
|
|
ExecStart=/bin/bash -c "
|
2020-07-02 14:33:02 +02:00
|
|
|
{%- if not grafana_kiosk.general.autofit | bool -%}
|
2020-07-02 15:23:14 +02:00
|
|
|
KIOSK_AUTOFIT={{ grafana_kiosk.general.autofit | ternary("true", "false") }}{{ '; '}}
|
|
|
|
{%- endif -%}
|
|
|
|
/usr/bin/grafana-kiosk -c /etc/grafana-kiosk/config.yml"
|
2020-06-30 17:44:05 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=graphical.target
|