Kodi Community Forum
[LIVE] fix xbmc-live's upstart script - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
---- Thread: [LIVE] fix xbmc-live's upstart script (/showthread.php?tid=124697)

[LIVE] Fix xbmc-live's upstart script - sirdharma - 2012-03-05


First of all I would like to thank the whole XBMC community for this awesome project that I have been using for a few years now, and for all the help that I have found in the forums.

I have always used the Live flavour of XBMC because I want my media center box to autostart XBMC as not everyone at home would feel comfortable using the command line.

I have found the upstart script provided with XBMC-Live never to work for my installation, so I wanted to report my findings here. I am no upstart expert but hopefully this may help other, and/or lead to the script being fixed.

Hardware: Zotac ZBOXHD-ID11 (http://www.zotac.com/index.php?page=shop.product_details&flypage=flypage_images-SRW.tpl&product_id=240&category_id=118&option=com_virtuemart&Itemid=100170&lang=en)
Linux Distribution and Version: Ubuntu 10.04.4 LTS
Architecture: i686
Install Method: Live (PPA)

  1. Revision: 2:10.1~ppa1~lucid (ppa:team-xbmc/ppa)
    For XBMC Dharma, I had to comment 3 lines in order to have the script work:
    < #    if ! grep -i -q autostart /tmp/xbmcliveParams ; then
    < #        exit
    < #    fi
    >     if ! grep -i -q autostart /tmp/xbmcliveParams ; then
    >         exit
    >     fi
  2. Revision: 2:11.0~git20120229.f38655f-0ubuntu1~ppa1~lucid (ppa:team-xbmc/unstable)
    For XBMC Eden, I had to add the actual exec line which was missing, and change the start events back to the conditions of the script from my Dharma installation:
    < start on (filesystem and stopped udevtrigger)
    > start on starting uxlaunch
    < emits starting-x
    <     exec /usr/bin/runXBMC
It has been frustrating each time that XBMC Live would not work out of the box, and I hope that this gets fixed in later releases. Please do not hesitate to let me know would you need any further detail. I think that the upstart script for Eden missing the actual exec line should/could definitely be fixed before the final release.

Also, for those like me who want their box to be running XBMC all the time, adding "respawn" in the upstart script will let XBMC restart would it be stopped (I found this especially useful as I want to prevent a user exiting XBMC and finding him/herself with a tty prompt - this could be an option within XBMC by the way).

All the best,

This forum uses Lukasz Tkacz MyBB addons.