Question

I have a linux process but I am taking some core dumps some times.

Simple question: Is there any way/method/program/whatever that is capable of restarting a process that got killed?

Thanks.

Was it helpful?

Solution

You can use monit.

OTHER TIPS

You could wrap the execution of the process in a shell script that would simply keep restarting the app as it exits.

In addition to what Soo mentioned, ensure you have a reliable notification mechanism so that you know you're getting frequent restarts.

Consider having a restart counter and stop restarting if you restart either too frequently or too many times. If you're just crashing, restarting and instantly crashing again that's usually a pretty bad thing.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top