views:

75

answers:

3

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.

+4  A: 

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

Soo Wei Tan
+1  A: 

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.

Eric J.
+1  A: 

You can use monit.

Shaji