37 lines
1.2 KiB
Text
37 lines
1.2 KiB
Text
|
[Unit]
|
||
|
Description=Grafana Kiosk
|
||
|
Documentation=https://github.com/grafana/grafana-kiosk
|
||
|
Documentation=https://grafana.com/blog/2019/05/02/grafana-tutorial-how-to-create-kiosks-to-display-dashboards-on-a-tv
|
||
|
After=network.target
|
||
|
Wants=graphical.target
|
||
|
After=graphical.target
|
||
|
|
||
|
[Service]
|
||
|
User={{ kiosk_user }}
|
||
|
Environment="DISPLAY=:0"
|
||
|
Environment="XAUTHORITY=/home/{{ kiosk_user }}/.Xauthority"
|
||
|
|
||
|
# These should work according to the docs, but are nowhere in the code?
|
||
|
#Environment="KIOSK_MODE=full"
|
||
|
#Environment="KIOSK_AUTOFIT=false"
|
||
|
#Environment="KIOSK_LXDE_ENABLED=true"
|
||
|
#Environment="KIOSK_LXDE_HOME=/home/{{ kiosk_user }}"
|
||
|
#Environment="KIOSK_URL={{ kiosk_url }}"
|
||
|
#Environment="KIOSK_LOGIN_METHOD=local"
|
||
|
#Environment="KIOSK_LOGIN_USER={{ kiosk_grafana_user }}"
|
||
|
#Environment="KIOSK_LOGIN_PASSWORD={{ kiosk_grafana_pass }}"
|
||
|
|
||
|
# Disable screensaver etc.
|
||
|
ExecStartPre=xset s off
|
||
|
ExecStartPre=xset -dpms
|
||
|
ExecStartPre=xset s noblank
|
||
|
|
||
|
ExecStart=/home/{{ kiosk_user }}/bin/grafana-kiosk -kiosk-mode=full -autofit=false -lxde-home=/home/{{ kiosk_user }} -URL="{{ kiosk_url }}" -login-method=local -username={{ kiosk_grafana_user }} --password={{ kiosk_grafana_pass }}
|
||
|
|
||
|
Restart=on-failure
|
||
|
RestartSec=30s
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=graphical.target
|
||
|
|