[Unit]
Description=Morz Infoboard Kiosk Display
After=systemd-user-sessions.service morz-agent.service getty@tty1.service
Wants=morz-agent.service
Conflicts=getty@tty1.service

[Service]
Type=simple
User={{ signage_user }}
PAMName=login
TTYPath=/dev/tty1
StandardInput=tty
UtmpIdentifier=tty1
UtmpMode=user
Environment=HOME=/home/{{ signage_user }}
ExecStartPre=/bin/sleep 3
ExecStart=/usr/bin/startx /usr/local/bin/morz-kiosk -- :0 vt1 -nocursor
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
