Crash restart

Is there a script out there that will automaticly restart the server after it crashes ?