mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #03818
[Bug 692697] Re: Automatically restart Myth Frontend (Mythbuntu; Patch)
Hi Pieter:
This looks good for the most part, but as it doesn't actually add a
dependency on libnotify-bin, could you do the following:
1) Make this relative to the bzr branch at lp:~mythbuntu/mythtv/mythtv-fixes
2) Make libnotify-bin a Recommends in debian/control.in and debian/control
3) Test if notify-send is in PATH, and if not, just log it to that log file.
--
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:
New
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