<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 23 March 2015 at 09:14, Nicolas Krzywinski <span dir="ltr"><<a href="mailto:myth@site7even.de" target="_blank">myth@site7even.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Am 2015-03-11 13:00, schrieb <a href="mailto:mythtv-users-request@mythtv.org" target="_blank">mythtv-users-request@mythtv.<u></u>org</a>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Message: 3<br>
Date: Wed, 11 Mar 2015 07:40:54 +1100<br>
From: Mike Holden <<a href="mailto:mikeholden99%2Bmythtv@gmail.com" target="_blank">mikeholden99+mythtv@gmail.com</a><u></u>><br>
To: Discussion about MythTV <<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a>><br>
Subject: Re: [mythtv-users] Question about mythlcdserver<br>
Message-ID:<br>
        <<a href="mailto:CAKfgc2LfHUG7J35A2GAg6iTaLodBV8dmNZxOozHjv0%2BWPVEgNQ@mail.gmail.com" target="_blank">CAKfgc2LfHUG7J35A2GAg6iTaLodB<u></u>V8dmNZxOozHjv0+WPVEgNQ@mail.<u></u>gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On 11 March 2015 at 03:05, Eric Sharkey <<a href="mailto:eric@lisaneric.org" target="_blank">eric@lisaneric.org</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
mythlcdserver seems to be starting too soon.  The startup scriptsfor<br>
Mythbuntu will be maintained by the Mythbuntu developer(s)responsible<br>
for that package.  You may want to file a bug report.<br>
<br>
<a href="https://bugs.launchpad.net/mythbuntu/+bugs" target="_blank">https://bugs.launchpad.net/<u></u>mythbuntu/+bugs</a><br>
</blockquote>
<br>
<br>
On my system (fedora), mythlcdserver is started by mythfrontend, notby<br>
some external script. That way, it doesn't start too early.<br>
</blockquote>
This seems to be the case on my system as well, but there is nothing in the mythfrontend start script, so it has to be within the mythfrontend.real binary code?<br>
Additionally I am using mythwelcome and this seems to start mythlcdserver as well, as it is running at that point already.<br>
<br>
I "solved" (better: workarounded) the issue with the following script, called from within mythfrontend starter script:<br>
#!/bin/bash<br>
<br>
# Check port of mythlcdserver<br>
foo=`netstat -l --tcp | grep 6545`<br>
ret=$?<br>
<br>
if [ $ret = 0 ]<br>
        then echo "Everything fine."<br>
else<br>
        # Wait for lcd symlink<br>
        for i in `seq 1 120` ; do<br>
                echo "`date +'%FT%T.%N%:z'` - manage-lcd loop $i"<br>
<br>
                if [ -h /dev/lcd-imon ]<br>
                        then break<br>
                else<br>
                        sleep .5<br>
                fi<br>
        done<br>
<br>
        # Restart mythlcdserver<br>
        killall mythlcdserver<br>
        mythlcdserver > /var/log/mythtv/mythlcdserver-<u></u>manual.log &<br>
fi<br>
<br>
As I don't know whether the loop is needed, it works like that.<br>
<br>
The way, mythlcdserver is called, is at least ... kind of weird.<br>
<br></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Yes, it's mythfrontend that starts the mythlcdserver on my system.<div><br></div><div>Fedora doesn't have the wrapper scripts, and I don't use mythwelcome either.<div><br></div><div>You could probably simplify your script even more, and just have it kill the mythlcdserver, but not attempt to restart it. Mythfrontend will start it for itself.</div></div><div class="gmail_extra"><br></div><div class="gmail_extra">-- </div><div class="gmail_extra">Mike Holden</div></div></div>