2017-01-09 05:52:53 +00:00
|
|
|
[Unit]
|
2018-09-01 13:25:12 +00:00
|
|
|
Description = Kodi for C2
|
2017-01-09 05:52:53 +00:00
|
|
|
After = remote-fs.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User = kodi
|
|
|
|
Group = kodi
|
|
|
|
Type = simple
|
2018-12-29 15:50:45 +00:00
|
|
|
PermissionsStartOnly = true
|
|
|
|
ExecStartPre = /bin/sh -c "dmesg -D"
|
|
|
|
ExecStartPre = /bin/sh -c "echo 0 > /sys/class/graphics/fbcon/cursor_blink"
|
2017-01-09 05:52:53 +00:00
|
|
|
ExecStart = /usr/bin/kodi
|
2018-12-29 15:50:45 +00:00
|
|
|
ExecStopPost = /bin/sh -c "echo 1 > /sys/class/graphics/fbcon/cursor_blink"
|
2019-06-23 14:51:14 +00:00
|
|
|
ExecStopPost = /bin/sh -c "dmesg -E"
|
2017-01-09 05:52:53 +00:00
|
|
|
Restart = on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy = multi-user.target
|