2014-01-04, 18:12
@fritsch could you update the guide to change the startup script? I found that if you don't include a netdevice waiting it will cause issues with mysql databases. This won't affect normal installs but people who could move to a more complex setup down the road it could cause issues. I think this is a great guide and will be used for some time down the road.
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 /usr/bin/xbmc --standalone :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