2013-02-02 23:01:39 +00:00
|
|
|
[Unit]
|
2018-10-23 23:27:25 +00:00
|
|
|
Description=Kodi standalone
|
|
|
|
After=remote-fs.target
|
2013-02-02 23:01:39 +00:00
|
|
|
|
|
|
|
[Service]
|
2018-10-23 23:27:25 +00:00
|
|
|
User=kodi
|
|
|
|
Group=kodi
|
|
|
|
ExecStartPre=+/bin/sh -c 'echo 0 > /sys/class/vtconsole/vtcon1/bind'
|
|
|
|
ExecStartPre=+/usr/bin/fbset -g 4 2 4 2 32
|
|
|
|
ExecStart=/usr/bin/kodi-standalone
|
|
|
|
ExecStopPost=+/usr/bin/fbset -g $RESTOREMODE
|
|
|
|
ExecStopPost=+/bin/sh -c 'echo 1 > /sys/class/vtconsole/vtcon1/bind'
|
|
|
|
Restart=on-failure
|
|
|
|
SendSIGHUP=yes
|
|
|
|
EnvironmentFile=/etc/conf.d/kodi-framebuffer
|
2013-02-02 23:01:39 +00:00
|
|
|
|
|
|
|
[Install]
|
2018-10-23 23:27:25 +00:00
|
|
|
WantedBy=multi-user.target
|