PKGBUILDs/alarm/kodi-rbp3/kodi.service

24 lines
770 B
SYSTEMD
Raw Normal View History

2019-02-01 01:28:06 +00:00
[Unit]
Description=Kodi standalone
2020-10-19 20:08:21 +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
2019-02-01 01:28:06 +00:00
[Service]
User=kodi
Group=kodi
2020-10-19 20:08:21 +00:00
AMName=login
TTYPath=/dev/tty1
EnvironmentFile=/etc/conf.d/kodi-framebuffer
2019-02-01 01:28:06 +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:08:21 +00:00
ExecStart=/usr/lib/kodi/kodi-rbpi --standalone
2019-02-01 01:28:06 +00:00
ExecStopPost=+/usr/bin/fbset -g $RESTOREMODE
ExecStopPost=+/bin/sh -c 'echo 1 > /sys/class/vtconsole/vtcon1/bind'
2020-10-19 20:08:21 +00:00
Restart=on-abort
StandardInput=tty
StandardOutput=journal
2019-02-01 01:28:06 +00:00
[Install]
2020-07-30 12:05:22 +00:00
Alias=display-manager.service