<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 18 March 2013 04:28, Alex Tomlins <span dir="ltr">&lt;<a href="mailto:alex@tomlins.org.uk" target="_blank">alex@tomlins.org.uk</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 17/03/13 16:15, Ian Evans wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think that&#39;s the first time my subject pretty much summed up my<br>
whole issue. :-)<br>
<br>
Mythbuntu&#39;s kill/restart irexec command kills but no longer restarts<br>
until pressed again.<br>
<br>
That is, the power/clear combo that kills mythfrontend and restarts<br>
it, now just kills it. If I hit the combo again, it finally restarts.<br>
<br>
The command hasn&#39;t changed. Any idea why it would take two usages now<br>
instead of one?<br>
<br>
Here&#39;s the command that&#39;s sent:<br>
<br>
(kill $(pgrep mythfrontend) || true) &amp;&amp; mythfrontend --service &amp;<br>
<br>
</blockquote></div>
It could well be a race condition...<br>
<br>
My guess is that on the first press, it sends the kill signal to mythfrontend, but then when it tries to start it again, the old instance hasn&#39;t finished exiting causing the new instance to fail to start (ports already in use etc...).  On the second call, it will start successfully because by then the old instance has exited.<br>

<br>
You could test this by adding a sleep in between the 2 commands.<br>
<br>
thanks,<br>
Alex<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">I find the mythbuntu auto restart script seems to work fairly reliably, maybe not as quick as a manual kill and restart but it works much more like the appliance it should be :)<br>
<br></div><div class="gmail_extra">Cheers,<br><br>Anthony<br></div></div>