← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 182746] Re: Always have to manually restart mythtv-backend after reboot

 

/etc/init/mythtv-backend.conf is the upstart script in charge of this. I
have added:

Between "script" and USER, I have added:
        while ! [ -e /dev/dvb/adapter1/frontend0 ]; do
		sleep 1s;
	done
to the beginning of this file.

======
start on (local-filesystems and net-device-up IFACE=lo)
stop on starting shutstart on (local-filesystems and net-device-up IFACE=lo)
stop on starting shutdown

#expect fork
respawn

script
        USER=mythtv
        ARGS="--logfile /var/log/mythtv/mythbackend.log --user $USER"
        test -f /etc/default/mythtv-backend && . /etc/default/mythtv-backend || true
        /usr/bin/mythbackend $ARGS
end scriptdown

#expect fork
respawn

script
        USER=mythtv
        ARGS="--logfile /var/log/mythtv/mythbackend.log --user $USER"
        test -f /etc/default/mythtv-backend && . /etc/default/mythtv-backend || true
        /usr/bin/mythbackend $ARGS
end script
=======

/dev/dvb/adapter1/frontend0 would need to be whichever is the last
adapter set up on the machine. It isn't a great solution, but it
certainly works for me.

The best approach would probably to be to make the backend itself wait
10 secs or so for all cards that are set up on the machine to be ready.
If the cards in the machine changed, this would mean a 10 second delay
(which isn't that bad), but in all other circumstances, it would solve
this problem.

-- 
Always have to manually restart mythtv-backend after reboot
https://bugs.launchpad.net/bugs/182746
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.

Status in Mythbuntu, Ubuntu derivative focused upon MythTV: Confirmed

Bug description:
I am on my second install of mythbuntu and I find after every reboot, that I have to restart mythtv-backend in order to watch tv.

sudo /etc/init.d/mythtv-backend restart

The error I get is the "all inputs are being used...".

Am I the only one this is happening to?

Just in case, here are some specs..
shuttle sn21g5 case, opteron 165, 1gig mem, nvidia 6600, turtle beach sound, 500GB seagate drive.

Thanks!!





Follow ups