Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7188

Call function the moment before script crashes?

$
0
0

I am solving the following problem:

I have a script which should be running as a service 24/7. Because it is quite important, I would like it to send me an email in case it crashes. I found atexit module, but the docs specifically says it cannot handle crashes.

So my question is: is there any better way of achieving this than by running another serivce which will be checking if this one is running? Or the goal here is to write the service so that it cannot crash (which is almost impossible)?

Thanks for your ideas!


Viewing all articles
Browse latest Browse all 7188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>