[mythtv-users] CTRL-ALT-BACKSPACE -> multiple instances of mythfrontend

Allen Edwards allen.p.edwards at gmail.com
Sun Mar 10 00:53:55 UTC 2019


On Sat, Mar 9, 2019 at 4:35 PM Ian Cameron <mkbloke at gmail.com> wrote:

> On Sat, 9 Mar 2019 at 23:03, Allen Edwards <allen.p.edwards at gmail.com>
> wrote:
>
>>
>>
>> On Sat, Mar 9, 2019 at 9:46 AM Allen Edwards <allen.p.edwards at gmail.com>
>> wrote:
>>
>>> I still am getting multiple mythfrontend.real running after
>>> CTRL-ALT-BS.  That is really strange. I did CTRL-ALT-BS ten times and had 9
>>> instances of mythfrontend running. Looks like mythfrontend.real either is
>>> not killed or restarts after it is killed
>>>
>>> lightdm.conf now looks like this
>>>
>>> *dad at NewMyth:~$ more /etc/lightdm/lightdm.conf*
>>> *[SeatDefaults]*
>>> *display-stopped-script=pkill lightdm*
>>> *user-session=mythbuntu*
>>> *allow-guest=false*
>>> *#autologin-user=*
>>> *[Seat:*]*
>>> *autologin-guest=false*
>>> *autologin-user=dad*
>>> *autologin-user-timeout=0*
>>>
>>> I am running 28.2+fixes
>>>
>>> Allen
>>>
>>
>> I did CTRL-ALT-BS twice so that there were three instances of
>> mythfrontend running.
>> I looked in the log and I see three of these lines differing only by
>> timestamp.  There are some lines before and after but all three of these
>> look to happen fairly quickly.
>> *Mar  9 13:53:45 NewMyth mythfrontend.real: mythfrontend[3221]: C
>> thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging)
>> mythfrontend version: fixes/0.28 [v0.28.2-6-g9031599] www.mythtv.org
>> <http://www.mythtv.org>*
>>
>> For whatever reason, mythfrontend is getting started one more time than
>> it was last time.  Whatever is responsible for starting myth is not getting
>> killed when I kill X.
>>
>
> I guess the solution will be to test whether or not it's already running
> before trying to start it.
>
> Assuming that it's launched via a wrapper called mythfrontend that is in
> located in a system bin directory accessible via $PATH, but appears in ps
> output as mythfrontend.real, the following will test to see if it's already
> running and start it if not:
>
> bash -c "ps -ef | grep '[m]ythfrontend\.real' 2>&1 > /dev/null || exec
> mythfrontend"
>
> The question now is where to put the above.  I don't have a Mythbuntu
> installation to look at, but if you can locate where the front-end is
> started from and replace it with the above, then hopefully that will fix
> things.
>
> Cheers, Ian
>

I have been reading scripts all day trying to find where that happens.  I
assume there is somewhere I can look and find what script is actually
called.  Any idea where that is?

Allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20190309/6c729f4e/attachment.html>


More information about the mythtv-users mailing list