[mythtv-users] Waiting for a HD HomeRun before starting the MythTV backend

Andrew Burgess aab at cichlid.com
Sun Feb 15 22:48:40 UTC 2009


On Sat, 2009-02-14 at 14:03 -0500, Jay Summet wrote:
> My mythtv box uses a SiliconDust HDHomeRun external network based tuner.
> Every so often (1 out of 5 boots) the network subsystem (or at least
> DHCP) does not get started up before the mythtv-backend daemon. This
> causes an error where the mythtv-backend does not find the tuner, so it
> can not record any shows.
...
> To fix this problem, I created a script (wait_for_hdhr) that will wait
> for the HDHomerun device to be found on the network before it exits. I
> call this script from inside the /etc/init.d/mythtv-backend script just
> before it starts up the mythtv-backend.
> 
> Now, about 1 out of 5 boots, instead of failing to connect to the tuner,
> my Ubuntu 8.04 based mythtv box will “pause” at the booting status bar
> for five to ten seconds. Then it drops to the text based boot-up
> messages and displays 8 to 12 “No HDHomeRun found yet…” messages before
> continuing with the bootup procedure after the network is initialized
> and the HDHomerun device is found.

I had a similar problem and invented a similar solution.
The only difference is I put the wait_for_hdhomerun and the
rest of the script (starting mythbackend etc) in a subshell so
the rest of the boot doesnt wait for it

This is Fedora not Ubuntu so YMMV

e.g.

wait_for_hdhomerun
/usr/bin/mythbackend
more stuff

changed to:

( wait_for_hdhomerun
  /usr/bin/mythbackend
  more stuff
) &

HTH



More information about the mythtv-users mailing list