Ok, I did 1 and 3

I don't know how to do 2... :-)

** Patch added: "Log error when notify-send is not in PATH"
   
https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/692697/+attachment/1772929/+files/mythfrontend-v2.patch

-- 
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.



_______________________________________________
Mailing list: https://launchpad.net/~mythbuntu-bugs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mythbuntu-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to