PKGBUILDs/alarm/kodi-rbp/kodi.service

24 lines
770 B
SYSTEMD
Raw Normal View History

[Unit]
2019-01-29 00:28:50 +00:00
Description=Kodi standalone
2020-10-19 20:10:58 +00:00
After=remote-fs.target systemd-user-sessions.service network-online.target nss-lookup.target sound.target bluetooth.target polkit.service upower.service mysqld.service
Wants=network-online.target polkit.service upower.service
Conflicts=getty@tty1.service
[Service]
2019-01-29 00:28:50 +00:00
User=kodi
Group=kodi
2020-10-19 20:10:58 +00:00
AMName=login
TTYPath=/dev/tty1
EnvironmentFile=/etc/conf.d/kodi-framebuffer
2019-01-29 00:28:50 +00:00
ExecStartPre=+/bin/sh -c 'echo 0 > /sys/class/vtconsole/vtcon1/bind'
ExecStartPre=+/usr/bin/fbset -g 4 2 4 2 32
2020-10-19 20:10:58 +00:00
ExecStart=/usr/lib/kodi/kodi-rbpi --standalone
2019-01-29 00:28:50 +00:00
ExecStopPost=+/usr/bin/fbset -g $RESTOREMODE
ExecStopPost=+/bin/sh -c 'echo 1 > /sys/class/vtconsole/vtcon1/bind'
2020-10-19 20:10:58 +00:00
Restart=on-abort
StandardInput=tty
StandardOutput=journal
[Install]
2020-07-30 12:21:32 +00:00
Alias=display-manager.service