[mythtv-users] mythbackend startup

devel at mrwire.co.uk devel at mrwire.co.uk
Fri Dec 15 15:00:40 UTC 2006

On my new system mythbackend is taking approximately 5 seconds from startup to being ready to accept frontend connections.  My frontend autostarts before this and complains that it can't find the backend.

I have a script to start the frontend which includes:

pgrep mythbackend # Tests whether mythbackend process is running.

When this returns true:
sleep 5 # Wait arbitrary amount for mythbackend.

Clearly, waiting 5 seconds is not a reliable way to make sure ythbackend is ready and also wastes time.  What I would like to know, is there some way of telling when mythbackend is ready?


More information about the mythtv-users mailing list