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!