[mythtv-users] Backend Crashes / Status Monitoring

Tom Lichti tom at redpepperracing.com
Tue Mar 22 19:54:35 UTC 2005


Will Dormann wrote:

> Dave Ansell wrote:
>
>> Hi,
>>
>>     I get occasional backend crashes - usually seems to be some 
>> qt/sql problem.  Very difficult to eliminate entirely.
>>
>>   Usually, the whole machine doesn't crash, just the backend and/or 
>> mysql.
>>
>>    Question is,  would it be feasible to run a cron script to monitor 
>> the backend status, either on the same box or from some other linux 
>> box, then reboot the machine or restart services if a problem is 
>> detected.
>
>
>
> I'm sure there are *much* more elegant ways of accomplishing this, but 
> I run this simple cron script.  I call it "mythmon.sh".  If 
> mythbackend isn't running, it'll email my cell phone.    You could set 
> it up to automatically restart the process or reboot the PC or 
> whatever you want.
>
I have a package called 'check_ds.pl" or something like that, it can 
monitor multiple daemons, and restart them if needed. I find my 
mythbackend needs to be restarted at least once a day, if not twice. 
This seems to do the trick, I run it from cron once a minute. I can post 
the script (it's just a perl script) if anyone wants it.

Tom


More information about the mythtv-users mailing list