2020-12-12 21:10:40 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Kodi standalone
|
2020-12-14 14:08:54 +00:00
|
|
|
After=remote-fs.target network-online.target nss-lookup.target sound.target bluetooth.target polkit.service upower.service mysqld.service
|
2020-12-12 21:10:40 +00:00
|
|
|
Wants=network-online.target polkit.service upower.service
|
|
|
|
Conflicts=getty@tty1.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=kodi
|
|
|
|
Group=kodi
|
|
|
|
TTYPath=/dev/tty1
|
|
|
|
EnvironmentFile=/etc/conf.d/kodi-framebuffer
|
|
|
|
ExecStartPre=+/bin/sh -c 'echo 0 > /sys/class/vtconsole/vtcon1/bind'
|
|
|
|
ExecStartPre=+/usr/bin/fbset -g 8 8 8 8 32
|
|
|
|
ExecStart=/usr/bin/kodi-standalone
|
|
|
|
ExecStop=/usr/bin/killall --user kodi --exact --wait kodi-rbpi
|
|
|
|
ExecStopPost=+/usr/bin/fbset -g $RESTOREMODE
|
|
|
|
ExecStopPost=+/bin/sh -c 'echo 1 > /sys/class/vtconsole/vtcon1/bind'
|
|
|
|
Restart=on-abort
|
|
|
|
StandardInput=tty
|
|
|
|
StandardOutput=journal
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
Alias=display-manager.service
|