Reload mythfrontend when crashed

Ask for new features here.

Moderator: Pablo

Post Reply
Rigor_M
New Member
Posts: 7
Joined: Mon Sep 07, 2009 4:01 pm

Reload mythfrontend when crashed

Post by Rigor_M » Sun Nov 22, 2009 9:23 pm

Hi,

Would it be possible to reload the mythfrontend when it crashes ?

When playing TV and I hit the ESC key, mythfrontend crashes. (using the 0.22-72 x86_64 version)

Wouls it be possible to insert a loop around the mythfrontend exec and if it crash, it would reload it self.

Could this be something that would be possible ?

any input on this would be great.

thanks !

Rigor_M

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Reload mythfrontend when crashed

Post by Pablo » Tue Dec 01, 2009 10:16 pm

If you have not already done so, then you might check out http://www.mythtv.org/wiki/Frontend_Loading_Script
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

freexe
New Member
Posts: 8
Joined: Tue Dec 15, 2009 11:16 am

Re: Reload mythfrontend when crashed

Post by freexe » Sat Feb 13, 2010 6:49 pm

How would I add this to minimyth? Also, isn't this something that could be added fairly easily to the default build.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Reload mythfrontend when crashed

Post by Pablo » Mon Feb 15, 2010 2:08 am

Because it is mythfrontend that is keeping Xorg running, if mythfrontend exits, then Xorg exits. Therefore, such as script would not work.

MiniMyth includes mythwelcome for those that want a relatively easy way to restart the mythfrontend were mythfrontend to exit. If you set

Code: Select all

MM_X_MYTH_PROGRAM='mythwelcome'
in your minimyth.conf file, then MiniMyth will start mythwelcome. mythwelcome has a button that launches mythfrontend.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

freexe
New Member
Posts: 8
Joined: Tue Dec 15, 2009 11:16 am

Re: Reload mythfrontend when crashed

Post by freexe » Mon Feb 15, 2010 4:32 am

Thank you, I'll try that.

Post Reply