Kodi Community Forum

Full Version: Want to ensure tvheadend is responding before launching xbmc?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a startup shell script. With following content:

sudo /etc/init.d/tvheadend start
until ps -e | grep tvheadend; do
sleep 1
/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.