Frontend Loading Script

From MythTV Official Wiki
Revision as of 16:56, 16 January 2006 by Jdastrup (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Well, technically it's near impossible to guarantee that mythfrontend will stay running. Although it rarely crashes for me, it's more likely that someone will hit ESC too many times and we'll be left with an empty display on our big TV. To avoid having to break out the keyboard and restart mythfrontend, here's a little script I use to restart it automatically:

# Automatically restart mythfrontend if it fails.

# Just for fun, lets start the myth transcode dameon, too.
sudo mtd -d

# Loop the call of mythfrontend.
while [ /bin/true ]
        sudo killall mythfrontend
        sudo mythfrontend
        sleep 2

Then, instead of starting Myth with 'mythfrontend', start it with the script above.