Re: [mythtv-users] Re: Double invocations of mythfrontend

2005-12-24 Thread Joe Ammann
On Sunday 18 December 2005 20:37, Dag Nygren wrote:
  Dag Nygren wrote:
   The extra process has a parent PID of 1.
 
  PID 1 is the init process. Check your /etc/inittab for mythfrontend
  entries with the respawn flag.

 Thanks, but that would be too easy ;-)

 PID 1 is also the process that inherits all processes where the parent
 has died, and I think this is what happens. Just have to figure  out how
 it happens.

Just went through the same problem. I had my restartfronted script attached 
to a specific button on my remote via irexec daemon. It used to work for some 
time, but then suddenly when I used it, it started 3 or 4 copies of the 
frontend. I guess this must have been caused by one of the regular upgrades 
of lirc or something.

Anyway, I found out that the script was really started several times for some 
reason, so I just made sure that the script won't run in parallel

#!/bin/bash

mkdir /tmp/restartfrontend || exit 0
trap 'rmdir /tmp/restartfrontend 2/dev/null' EXIT

pkill mythfrontend
sleep 2
pkill -9 mythfrontend
nohup mythfrontend  $HOME/.xsession-errors 21 
sleep 5
rmdir /tmp/restartfrontend

Works for me!

CU, Joe
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] Re: Double invocations of mythfrontend

2005-12-18 Thread Boleslaw Ciesielski

Dag Nygren wrote:

The extra process has a parent PID of 1.


PID 1 is the init process. Check your /etc/inittab for mythfrontend 
entries with the respawn flag.


Bolek
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Double invocations of mythfrontend

2005-12-18 Thread Dag Nygren
 Dag Nygren wrote:
  The extra process has a parent PID of 1.
 
 PID 1 is the init process. Check your /etc/inittab for mythfrontend 
 entries with the respawn flag.

Thanks, but that would be too easy ;-)

PID 1 is also the process that inherits all processes where the parent
has died, and I think this is what happens. Just have to figure  out how
it happens.

Thanks anyway.

Dag

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Double invocations of mythfrontend

2005-12-18 Thread Larry K
I have the same problem. If anyone has found a solution, please post it here. Thanks.On 12/18/05, Dag Nygren 
[EMAIL PROTECTED] wrote: Dag Nygren wrote:  The extra process has a parent PID of 1.
 PID 1 is the init process. Check your /etc/inittab for mythfrontend entries with the respawn flag.Thanks, but that would be too easy ;-)PID 1 is also the process that inherits all processes where the parent
has died, and I think this is what happens. Just have to figureout howit happens.Thanks anyway.Dag___mythtv-users mailing list
mythtv-users@mythtv.orghttp://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users