[mythtv-users] Start Mythfrontend if not running?

Christopher McEwan christopher.mcewan at gmail.com
Tue Dec 28 16:29:03 UTC 2004


On Fri, 17 Dec 2004 07:38:36 -0600, Bryan Murphy <bryan at terralab.com> wrote:
> 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
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> 

Excellent stuff !

Had to change a couple things to get it to work but work it does.. 

Thank you !

-- 
Regards,


~CM


More information about the mythtv-users mailing list