[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.

#!/bin/sh

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
done

>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
>mythfrontend.
>  
>



More information about the mythtv-users mailing list