← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 692697] Re: Automatically restart Myth Frontend (Mythbuntu; Patch)

 

Sorry for the delays, I just got this tested.  It looks good, i've
committed it to autobuilds (and made the change for <2>).  It will be in
the next set of autobuilds and included by default in Natty.

** Changed in: mythtv (Ubuntu)
       Status: New => Fix Committed

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

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