[mythtv-users] Mythbackend fails to autostart on MDK9.1

Michael Greb mikegrb at yahoo.com
Wed Oct 1 02:52:56 EDT 2003


On Wednesday 01 October 2003 01:27 am, David Wachs wrote:
> I'm wondering if anybody can shed some light here.
> I'm trying to get mythbackend to start automatically
> upon system boot (using the directions in the
> documentation).  It fails, but I can run it from the
> command line just fine.
>
> This is what is put in the log file:
>
> Starting up as the master server.
> Channel::Open(): Can't open: /dev/video0
> /dev/video0: No such file or directory
> Channel::Open(): Can't open: /dev/video0
> /dev/video0: No such file or directory
> Couldn't find input: Tuner 0 on card
> Channel::Open(): Can't open: /dev/video0
> /dev/video0: No such file or directory
> Couldn't find input: Tuner 0 on card
>
> I'm wondering if its trying to start before the PVR250
> gets initialized?  How would I fix this?
Yes, that is what it appears to be.  There are several ways to fix it, it 
depends on the distribution.  There are two methods for nameing init scripts.  
One method would look something like "S34mythbackend"  this would /S/tart 
mythbackend after everything numbered less then 34 and after everything > 34 
and < or = 99 (the max).  Look in the dir that has the sym links to the 
/etc/init.d/ scripts and you can rename the myth script to S99 to make it 
last, or very close to it.

The other method I am not certain is the same on all systems but it's what 
gentoo uses has a section like the following at the top of the init scripts:
depend() {
        need checkroot hostname
        use isapnp
}
where these are names of other init scripts.  In this case you might have 
"need modules" or whatever init script loads modules on your system.  For 
reference my mythbackend init script includes  "need net" and "use mysql" I 
/believe/ need is mandatory dependencies which, if not met, will prevent the 
service from being started whereas use are desired dependencies.  The desired 
service will be attempted to start first but if it doesn't succeed, your 
service will still try loading.  I believe red hat uses the first method.  
Main thing look at where your modules are loaded and then where your 
mythbackend init script is loaded.

Hope this is helpful.

> Thanks in advance,
No problem
> David
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20031001/157da61a/attachment.pgp


More information about the mythtv-users mailing list