Spotting Crashed Application

Robert Rawlins - Think Blue robert.rawlins at thinkbluemedia.co.uk
Wed May 9 05:40:46 EDT 2007


Hello Guys,

 

I've got an application that I've written, and it sits in an embedded
system, from time to time the application will crash, I'm not quite sure
what's causing this, but as we test it more and more we'll grasp a better
understanding and fix the issues.

 

However, until then I need a quick solution which can spot the crash and
reboot the system. Is there any generic way of writing a separate
application that'll spot the crash in my main application? If not then i was
thinking about having my core application log itself as 'alive' every 5
minutes or so. My new 'spotter' application can check this log, if it's not
been written too in say 6 minutes then the main app must have crashed, and
it can reboot.

 

Any suggestions on how best to handle this? Obviously finding the bug in my
main app is paramount, but a failsafe will never hurt.

 

Thanks again guys,

 

Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070509/8f246e5e/attachment.html>


More information about the Python-list mailing list