Kodi Community Forum
XBMCbuntu boots too fast. - 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: XBMCbuntu boots too fast. (/showthread.php?tid=124428)

Pages: 1 2


RE: XBMCbuntu boots too fast. - laric - 2014-05-18

I don't use xbmcbuntu. I use ubuntu which autostarts xbmc as standalone.. I have my /etc/init/xbmc script wait for a network interface that is not localhost to be up before starting.. like this

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 and net-device-up IFACE!=lo)
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

where the start on line in the crucial one. I assume you can do the same on your startup either it is xbmc standalone or if it is a full X logon manager.