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.



_______________________________________________ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to