2013-12-15, 21:35
Puh, it was easier than I thought, thx to non existent documentation.
Add limit nice 21 21 to your /etc/init/xbmc.conf directly under the respawn, so that it looks like:
Add limit nice 21 21 to your /etc/init/xbmc.conf directly under the respawn, so that it looks like:
Code:
# xbmc-upstart
# starts XBMC on startup by using xinit.
# by default runs as xbmc, to change edit below.
env USER=xbmc
description "XBMC-barebones-upstart-script"
author "Matt Filetto"
start on (filesystem and stopped udevtrigger)
stop on runlevel [016]
# tell upstart to respawn the process if abnormal exit
respawn
respawn limit 10 5
limit nice 21 21
script
exec su -c "xinit /home/xbmc/startxbmc.sh :0" $USER
# the following two are to get an idea, if you want to user a window manager
# exec su -c "xinit /usr/bin/fluxbox :0" $USER
end script