PKGBUILDs/alarm/kodi-imx/kodi.service
Benjamin Asbach 5e1bec905f alarm/kodi-imx - disabled kodi showing dmesg messages
When messages are added to dmesg they're shown in kodi as overlay. In order to disable this behaviour the service script disable dmesg console logging before start of kodi and reenable console logging after. Since this operation needs root rights the PermissionsStartOnly was set to true.
2015-09-09 22:48:32 +02:00

19 lines
494 B
Desktop File

[Unit]
Description = Starts an instance of Kodi
After = remote-fs.target
[Service]
User = kodi
Group = kodi
Type = simple
PermissionsStartOnly = true
ExecStartPre = /bin/sh -c "dmesg -D"
ExecStartPre = /bin/sh -c "echo 0 > /sys/class/graphics/fbcon/cursor_blink"
ExecStart = /usr/bin/kodi-standalone -l /run/lirc/lircd
ExecStopPost = /bin/sh -c "echo 1 > /sys/class/graphics/fbcon/cursor_blink"
ExexStopPost = /bin/sh -c "dmesg -E"
Restart = on-failure
[Install]
WantedBy = multi-user.target