[mythtv-users] Automatically restart backend on failure? (Gentoo)
Andrew Lyon
andrew.lyon at gmail.com
Wed Nov 1 16:05:43 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.
Exactly.
> 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."
That is exactly what I was going to write myself if nobody responded
that they had already done it :), I will probably have a go at it
anyway as I'd like to do it in bash script instead of perl..
Thanks
Andy
More information about the mythtv-users
mailing list