<br><br><div class="gmail_quote">On Thu, Jul 29, 2010 at 7:44 PM, Nick Rout <span dir="ltr">&lt;<a href="mailto:nick.rout@gmail.com">nick.rout@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Fri, Jul 30, 2010 at 6:01 AM,  &lt;<a href="mailto:mythtv.t.wuuza@xoxy.net">mythtv.t.wuuza@xoxy.net</a>&gt; wrote:<br>
&gt;&gt; Is there a way to do this in rc.local, i have a loop on my laptop to<br>
&gt; wait<br>
&gt;&gt; until iwconfig has an ip address and then mount -a, because samba was<br>
&gt; not<br>
&gt;&gt; mounting my shares correctly because the wireless took so long to get an<br>
&gt; ip<br>
&gt;&gt; address. So would love a way to wait for mythbackend to start, or<br>
&gt; restart<br>
&gt;&gt; mythbackend once mythfrontend is running.<br>
&gt;<br>
&gt; I don&#39;t know.  I&#39;m not all that familiar with this stuff, especially since<br>
&gt; things have been changing recently (like upstart).  If he&#39;s got a default<br>
&gt; Mythbuntu install then mythtv-backend is an upstart job.  You could write<br>
&gt; another upstart job that does the checking loop, and then modify the<br>
&gt; mythtv-backend job to depend on that one (ie add it to &quot;start on&quot; stanza).<br>
&gt;  Writing the upstart job is easy - I have one in there that calls the same<br>
&gt; firewire primer script as my sleep/resume script does.  In Kubuntu 8.04<br>
&gt; there was an issue where the backend started before networking was fully<br>
&gt; loaded and it never found my HDHomeRun.  For that I just took the easy<br>
&gt; route and put a &quot;sleep 10&quot; in the backend init script, so that would be<br>
&gt; another easy option.<br>
<br>
</div>I suspect the backend is starting before the pvr module is loaded, and<br>
the permission denied message is because the device nodes simply are<br>
not there.<br>
<br>
Add a delay to the backend startup script, or restart the backend in<br>
/etc/rc.local.<br>
<br></blockquote><div>That&#39;s the thing i did.  I have:</div><div><br></div><div>/usr/bin/service mythtv-backend restart</div><div><br></div><div>But it still doesn&#39;t fix it.  However, once X is loaded if i run same command it&#39;s fine. </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Supposedly upstart should be able to create a situation where it says<br>
&quot;start the backend after the following modules have loaded&quot; - but the<br>
mythbuntu engineers do not seem to be able to get it to work like<br>
that. (of course everyone has different &quot;modules&quot; that need to  load<br>
first)<br>
<div><div></div><div class="h5">_______________________________________________<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" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sincerely, <br><br>MacNean C. Tyrrell<br>