Want to ensure tvheadend is responding before launching xbmc?
#1
I have a startup shell script. With following content:

#!/bin/sh
sudo /etc/init.d/tvheadend start
until ps -e | grep tvheadend; do
sleep 1
done
/usr/bin/xbmc &

Now it starts tvheadend and then xbmc but it is not enough, it complains about live tv application being active but none of the plugins being activated or so. It says "The PVR manager has been enabled without any enabled PVR add-on. Enable at least one add-on in order to use the PVR functionality."

So I think the tvheadend takes few seconds to start responding and my loop is not sufficient to ensure that there is an answer to xbmc request. So is there a better way to control this than checking tvheadend process - of course I can try to put yet another sleep in between but that is not elegant.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Want to ensure tvheadend is responding before launching xbmc?00
This forum uses Lukasz Tkacz MyBB addons.