[mythtv-users] How to KEEP mythtv running when user exits

MythTV mythtv at pearsall.us
Wed Jan 11 18:20:58 UTC 2006


Jarod's how-to under Tips and Tricks "Make Myth more Wife friendly"
(http://wilsonet.com/mythtv/tips.php) has a technique to make a button the
remote restart the frontend.

- Todd

-----Original Message-----
From: mythtv-users-bounces at mythtv.org
[mailto:mythtv-users-bounces at mythtv.org] On Behalf Of
f-myth-users at media.mit.edu
Sent: Tuesday, January 10, 2006 11:16 PM
To: mythtv-users at mythtv.org
Cc: f-myth-users at media.mit.edu
Subject: [mythtv-users] How to KEEP mythtv running when user exits

    Date: Tue, 10 Jan 2006 16:50:07 -0800
    From: John Biundo <johnbiundo at sbcglobal.net>

    Hi all.

    I've got mythtv starting up automatically upon boot (by running 
    mythfrontend in user mythtv's .xsession).  No problem there.

    But when my wife/kids exit from the top menu by mistake (one too many 
    exit button presses) they're left at the befuddling command prompt.

    After futzing with inittab to try to get this working, and googling 
    around along a bunch of wild goose chases, I'm throwing my hands up and 
    beseeching the gurus how to do this.

If I understand you correctly, you might try putting something like this in
mythtv's .xsession:

while [ 1 ]
do
  mythfrontend
done

That way, if the frontend exits for any reason, it'll instantly restart
itself.  (It -also- means you can't log out of mythtv on the X display
directly; you'd have to kill the process running the "while" loop, or one of
its parents, to actually kill the frontend; presumably you'd do this by
ssh'ing in from somewhere else---note that a cleaner way would be to make
the loop check for the existence of some file, and then just delete the file
(again, from somewhere
else) and -then- exiting the frontend won't cause it to respawn.)

I did this when I was repeatedly restarting the frontend to get various
overscan/positioning parameters set correctly (via trial and error), and it
was so useful I just left it in place.
_______________________________________________
mythtv-users mailing list
mythtv-users at mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users



More information about the mythtv-users mailing list