# kodi-upstart # Starts kodi on startup by using xinit. # by default runs as kodi, to change edit below. env USER=kodi description "Kodi-barebones-upstart-script" author "Matt Filetto - Tweaked by un1versal" 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 /usr/bin/kodi --standalone -- /usr/bin/X -nocursor -bs -nolisten tcp vt7 :0" $USER end script