[mythtv-users] 0.21 and database corruption/how to rebuild and update from backup
Brad DerManouelian
myth at dermanouelian.com
Wed Mar 19 14:10:08 UTC 2008
On Mar 18, 2008, at 10:31 PM, Bob Sully wrote:
>
> Neil Bird wrote:
>> Around about 18/03/08 05:27, Bob Sully typed ...
>>> One minor concern... The backend segfaulted, and I had to restart
>>> it manually. Hopefully that won't happen again. I'm wondering if
>>> maybe
>>> I
>>> should write a little script (if there isn't one already out
>>> there) to
>>> check every so often whethere the backend is running, and if not,
>>> restart
>>> it...?
>>
>> As I'm paranoid, and it does stuff up sometimes, I have (among
>> other
>> entries for mythfilldatabase and LCD status):
>>
>> <snipped a bunch of code>
>
> Neil - thanks very much for posting this - you saved me some work -
> now I
> don't have to reinvent the wheel. ;-) I'll modify it (if necessary)
> and
> try it on my system. It hasn't crashed again since then, but even
> if it
> happens again only rarely, it's still nice to have a fail-safe.
Or you could use the built-in system in linux for respawning a process
that crashed and avoid scripting and cron jobs altogether.
http://linux.about.com/od/commands/l/blcmdl5_inittab.htm
http://linux.about.com/library/cmd/blcmdl8_telinit.htm
More information about the mythtv-users
mailing list