[mythtv-users] Start Mythfrontend if not running?

Bryan Murphy bryan at terralab.com
Fri Dec 17 13:38:36 UTC 2004

This is what I use.  It restarts myth if it crashes, but not if you exit 
it normally.  Modify to fit your environment.


export DISPLAY=":0.1"
xset -display :0.1 -dpms
xset -display :0.1 s off

until [ "$?" == "1" ]; do
    /opt/MythTV/bin/mythfrontend > /tmp/mythfrontend.log 2>&1

>When I had problems with the frontend crashing, I just ran it like so:
>while echo Restarted; do mythfrontend; done
>This will just run mythfrontend in a loop forever. Problem is that you
>can't exit it without launching a second terminal and killing the
>process, but I was running a dedicated box, so I saw no need for closing

More information about the mythtv-users mailing list