[mythtv-users] Automatically restart backend on failure? (Gentoo)

Dan Wilga mythtv-users2 at dwilga-linux1.amherst.edu
Wed Nov 1 13:40:22 UTC 2006

The problem with cron-based solutions to this problem is the lag 
between the time of the crash and when cron next runs. If MBA had 
been recording when it died, you can miss a big part of the program.

Instead, here's a daemon I wrote to start MBA and monitor how it 
ends. If it ends gracefully (i.e.: it got a TERM signal), then this 
script exits. If not, MBA is immediately relaunched.

The script can be started from /etc/rc.d/rc.local .
Dan Wilga                                                        "Ook."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: start-mythbackend
Type: application/octet-stream
Size: 1567 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20061101/b0d6ac03/attachment.obj 

More information about the mythtv-users mailing list