summarylogtreecommitdiffstats
path: root/kodi.service
blob: bfb6b9155af24f421a61ed64052e585caf7c9ca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description = Starts an instance of Kodi
After = remote-fs.target

[Service]
User = kodi
Group = kodi
Type = simple
PermissionsStartOnly = true
ExecStartPre = /bin/sh -c 'echo 0 > /sys/class/vtconsole/vtcon1/bind'
ExecStartPre = /bin/sh -c "dmesg -D"
ExecStartPre = /bin/sh -c "echo 0 > /sys/class/graphics/fbcon/cursor_blink"
ExecStart = /usr/bin/kodi
ExecStopPost = /bin/sh -c "dmesg -E"
ExecStopPost = /bin/sh -c "echo 1 > /sys/class/graphics/fbcon/cursor_blink"
ExecStopPost = /bin/sh -c 'echo 0 > /sys/class/vtconsole/vtcon1/bind'
Restart = on-failure

[Install]
WantedBy = multi-user.target