2014-10-23, 22:38
I have reduced my problem to as simple as possible.
I have Ubuntu 12.04 and xbmc 13.2
I have a shell script that starts xbmc. It works fine when started from command line.
I inserted log statements for diagnosis and a sleep to avoid that anything is not yet initialized.
It starts xbmc without problems and the log output is:
Then I have an upstart script that should start this script:
the log output is:
But it does NOT start xbmc. Why is that?
PS.: I am aware of this: http://kodi.wiki/view/HOW-TO:Autostart_XBMC_for_Linux but it does not seem to work either.
I have Ubuntu 12.04 and xbmc 13.2
I have a shell script that starts xbmc. It works fine when started from command line.
Code:
#!/bin/bash
echo "10 sec left" >> /var/log/upstarttest.log
sleep 10
echo "gogogo!" >> /var/log/upstarttest.log
/usr/bin/xbmc
echo "finished" >> /var/log/upstarttest.log
I inserted log statements for diagnosis and a sleep to avoid that anything is not yet initialized.
It starts xbmc without problems and the log output is:
Code:
10 sec left
gogogo!
finished
Then I have an upstart script that should start this script:
Code:
# Starts xbmc
description "start xbmc"
# runlevels
start on runlevel [2345]
stop on runlevel [!2345]
script
exec /home/myusername/.xbmc/xbmc-upstart
end script
the log output is:
Code:
10 sec left
gogogo!
finished
But it does NOT start xbmc. Why is that?
PS.: I am aware of this: http://kodi.wiki/view/HOW-TO:Autostart_XBMC_for_Linux but it does not seem to work either.