[mythtv-users] 0.21 and database corruption/how to rebuild and update from backup
Michael T. Dean
mtdean at thirdcontact.com
Wed Mar 19 17:20:18 UTC 2008
On 03/19/2008 10:10 AM, Brad DerManouelian wrote:
> 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. ;-)
>>
>
> 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
If you do, just make sure that whatever is called from your inittab sets
up the environment properly before starting Myth stuff. With 0.21, Myth
will fail to start in some (broken) environments.
Mike
More information about the mythtv-users
mailing list