mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #04098
[Bug 692697] Re: Automatically restart Myth Frontend (Mythbuntu; Patch)
This bug was fixed in the package mythtv -
2:0.24.0+fixes.20110208.6318d52-0ubuntu1
---------------
mythtv (2:0.24.0+fixes.20110208.6318d52-0ubuntu1) natty; urgency=low
[ Pieter Hoekstra ]
* Automatically restart the frontend if it crashes. Also notify the user
using libnotify. (LP: #692697)
[ Mario Limonciello ]
* debian/control:
- Depends on libnotify-bin.
* New upstream checkout (6318d52)
* >>Upstream changes since last upload (6dd5e4b):
* [6318d52] Replace 'xml' version check with one that checks Python
version, for Python 2.7 compatibility. (LP: #711762)
-- Mario Limonciello <Mario_Limonciello@xxxxxxxx> Tue, 08 Feb 2011 11:59:28 -0600
** Changed in: mythtv (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythtv in ubuntu.
https://bugs.launchpad.net/bugs/692697
Title:
Automatically restart Myth Frontend (Mythbuntu; Patch)
Status in “mythtv” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: mythtv-frontend
Every once in a while, mythfrontend crashes. This is often in
MythMusic using a visualization or when using corrupt media files,
etc.
Because not having a keyboard on my Mythbuntu mediacenter, there is
often no other option than poweroff and reboot the machine. (unless
I'm at home ofcource...)
I have changed the existing /usr/bin/mythfrontend script to be a "watchdog" to automatically restart mythfrontend.real (see attached patch)
The script only restarts with a exit code other than 0 or 1 and only
in "--service" mode. This prevents restarting mythfrontend while the
user uses the Exit option, or when X stops, or machine reboots or when
starting myth from the command-line.
While restarting, it displays a "Restarting Frontend" message. Test it using: pkill -9 -f mythfrontend.real
The display-messages requires "notify-send" in package libnotify-bin. I used this, so you don't have to click it away.
I'm using this with Myth 0.23 and Myth 0.24 for a few months now.
Since checking for exit-codes, I do not have any issues.
References