This does not appear to be the issue. Both links are there and they point to the correct place. They are S24mythtv-backend, not S99*. I assume this represents some kind of ordering? I don't see anything with a higher number that should be required.
<br><br>--<br>Mike<br><br><div><span class="gmail_quote">On 11/9/06, <b class="gmail_sendername">Glyn Davies</b> <<a href="mailto:agdavies@gmail.com">agdavies@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Probably a silly question, but have you got an appropriate soft link<br>in /etc/rc3.d and/or /etc/rc5.d?<br><br>Something like...<br>$ ls -l /etc/rc3.d/S99mythtv<br>lrwxrwxrwx 1 root root 16 Jul 2 2005 /etc/rc3.d/S99mythtv -> ../init.d/mythtv*
<br><br>(I'm no Ubuntu user, so my apologies if these dirs don't apply on that distro.)<br><br>On 09/11/06, Mario Limonciello <<a href="mailto:mario.mailing@gmail.com">mario.mailing@gmail.com</a>> wrote:<br>> Michael,
<br>><br>> I think I mis-interpreted your first post. The backend will run from the<br>> init script if you run it by sudo like this right?:<br>><br>> > sudo /etc/init.d/mythtv-backend start<br>> >
<br>><br>> If so, then we need to investigate why it won't run from startup init<br>> scripts by default. (You have a different startup problem then what i've<br>> noticed on the forums)<br>><br>> For controlling /dev/ttyS0,
<br>> add mythtv to the "dialout" group. I will notate this to be added to the<br>> guide under serial control. I'll also try to remember that feisty packages<br>> should do this by default.<br>><br>
> About ivtv control, myth is able to control the devices after these two<br>> commands, correct? If so, then try adding to /etc/default/mythtv-backend<br>> some verbosity switches (probably video related switches) and starting the
<br>> backend to see if it tells you when it tries to set the channel and input.<br>><br>><br>> Regards,<br>><br>> Mario<br>><br>><br>> On 11/9/06, Michael Tiller <<a href="mailto:michael.tiller@gmail.com">
michael.tiller@gmail.com</a>> wrote:<br>> > Mario,<br>> ><br>> > Thanks for the response. I did not use mythtv as my first user. In<br>> fact, I used your guide (which I think is quite good) which is how I knew
<br>> not to do this. :-)<br>> ><br>> > Note that I have no trouble starting it manually (via sudo). I have<br>> added three lines which I've highlighted in red. When I get home I'll try<br>> taking them out and see if they make a difference but if the script is run
<br>> as root I can't see why it would make a difference.<br>> ><br>> > I dont know what the lines:<br>> ><br>> > # Default-Start: 24<br>> > # Default-Stop: S<br>> > ...mean but I'm assuming they are fine as configured.
<br>> ><br>> > Note that everything in red is a hack so I'm working on trying to<br>> eliminate the need for them. I know that somehow udev is responsible for<br>> the permissions on ttyS0 but I have yet to figure out how to specify a rule
<br>> so it gets the permissions right. The other two things Myth should do for<br>> me but does not seem to?!?<br>> ><br>> > Thanks for any ideas.<br>> ><br>> > --<br>> > Mike<br>> >
<br>> > #! /bin/sh<br>> > ### BEGIN INIT INFO<br>> > # Provides: mythtv-backend<br>> > # Required-Start: $local_fs<br>> > # Required-Stop: $local_fs<br>> > # Default-Start: 24
<br>> > # Default-Stop: S<br>> > # Short-Description: Start/Stop the MythTV server.<br>> > ### END INIT INFO<br>> ><br>> ><br>> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
<br>> > DAEMON=/usr/bin/mythbackend<br>> > NAME="mythbackend"<br>> > DESC="MythTV server"<br>> ><br>> > # Add this to make sure we can<br>> > # change channels<br>> > chmod a+rw /dev/ttyS0
<br>> ><br>> > test -x $DAEMON || exit 0<br>> ><br>> > set -e<br>> ><br>> > USER=mythtv<br>> > RUNDIR=/var/run/mythtv<br>> > ARGS="--daemon --logfile /var/log/mythtv/mythbackend.log --pidfile
<br>> $RUNDIR/$NAME<br>> > .pid"<br>> > EXTRA_ARGS=""<br>> > NICE=0<br>> ><br>> > if [ -f /etc/default/mythtv-backend ]; then<br>> > . /etc/default/mythtv-backend<br>
> > fi<br>> ><br>> > ARGS="$ARGS $EXTRA_ARGS"<br>> ><br>> > mkdir -p $RUNDIR<br>> > chown -R $USER $RUNDIR<br>> ><br>> ><br>> > case "$1" in<br>> > start)
<br>> > if test -e $RUNDIR/$NAME.pid ; then<br>> > echo "mythbackend already running, use restart instead."<br>> > else<br>> > echo -n "Starting $DESC: $NAME"
<br>> > ivtvctl --set-input 0<br>> > ivtv-tune -c 3<br>> > start-stop-daemon --start --pidfile $RUNDIR/$NAME.pid \<br>> > --chuid $USER --nicelevel $NICE --exec $DAEMON --
<br>> $ARGS<br>> > echo "."<br>> > fi<br>> > ;;<br>> ><br>> ><br>> ><br>> ><br>> ><br>> ><br>> > On 11/9/06, Mario Limonciello <
<a href="mailto:mario.mailing@gmail.com">mario.mailing@gmail.com</a>> wrote:<br>> > > Mike,<br>> > ><br>> > > Recently, I have seen a few posts similar that people can't get the<br>> backend to launch from myth init scripts in Ubuntu. I'm trying to find
<br>> something common between them but have yet to. I personally have 2 ubuntu<br>> backends, and haven't come up with any problems with either init script.<br>> > ><br>> > > By some weird chance, when you did your ubuntu install - your "first"
<br>> user - did you use mythtv? Your not supposed to as this user is created<br>> when you install myth and is used for myth. If that is what you did, then<br>> I've got some ideas what we can do.<br>> > >
<br>> > > If this isn't what you did, then we need to walk through the init script<br>> and find where the trouble is. What guide did you follow for installation?<br>> Did you follow a guide?<br>> > >
<br>> > > Regards,<br>> > ><br>> > > Mario<br>> > ><br>> > ><br>> > ><br>> > > On 11/9/06, Michael Tiller <<a href="mailto:michael.tiller@gmail.com">michael.tiller@gmail.com
</a> > wrote:<br>> > > ><br>> > > > I've nearly got my new Ubuntu based MythTV 0.20 system into a robust<br>> state. I've just got two little things left that I'm having trouble with<br>> and hopefully somebody here can point me to a solution.
<br>> > > ><br>> > > > The first issue is that when I reboot, it does not start the backend.<br>> There is a script in /etc/init.d called "mythtv-backend" that was installed<br>> when I installed MythTV from the repositories. However, it does not appear
<br>> to get run?!? If I remove /var/log/mythbackend.log and then touch it and<br>> chown it to get it to a "0 size" state and then reboot it remains empty.<br>> Any idea what is going on there? Is there anything I have to do to (apart
<br>> from putting the file in /etc/init.d) that I have to do to get the system to<br>> invoke it (I know how this is done in FC but I'm fairly new to Ubuntu,<br>> sorry).<br>> > > ><br>> > > > As a side note, is this script run as root? I assume so. I ask
<br>> because I need to do a few things as root inside this script to get the<br>> system properly set up.<br>> > > ><br>> > > > Actually that leads to another question...I'm having to run ivtvctl
<br>> and ivtv-tune in /etc/init.d/mythtv-backend. This is because even though I<br>> have specified to use the tuner input and what the tuner channel should be<br>> set to, the backend doesn't seem to apply these properly. Any ideas on what
<br>> might be going on?<br>> > > ><br>> > > > The last issue is that, once I get the backend up and running, the<br>> first time I go to "WatchTV" it just comes back to the menu after showing a
<br>> blank screen for a few seconds. The second time I go to watch TV, it works<br>> (and from then on). Any ideas? I suspect a similar thing might happen for<br>> the first attempted recording (if nobody has watched TV) which could cause
<br>> me to miss recordings.<br>> > > ><br>> > > > Thanks for any pointers.<br>> > > ><br>> > > > --<br>> > > > Mike<br>> > > ><br>> > > >
<br>> > > > _______________________________________________<br>> > > > mythtv-users mailing list<br>> > > > <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>> > > >
<br>> <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>> > > ><br>> > > ><br>> > > ><br>> > >
<br>> > ><br>> > > _______________________________________________<br>> > > mythtv-users mailing list<br>> > > <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>> > >
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>> > ><br>> > ><br>> > ><br>> ><br>> ><br>> > _______________________________________________
<br>> > mythtv-users mailing list<br>> > <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>> > <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br>> ><br>> ><br>> ><br>><br>><br>> _______________________________________________<br>> mythtv-users mailing list<br>> <a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org
</a><br>> <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>><br>><br>><br><br><br>--<br>Glyn Davies<br><a href="http://www.glyndavies.org">
www.glyndavies.org</a><br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></blockquote></div><br>