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.j2

21 lines
603 B
Text
Raw Normal View History

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
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 -%}
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