Apache Automatic Restart

I know I saw something about this a couple of weeks ago, but I just can't find it!

Basically Apache kills itself every now and again. I'm not too sure why, but as I have to sleep sometimes I don't usually find out for a couple of hours.

I would like to be able to check using crontab every 5 minutes (or less) if apache is running and if it isn't too restart it. I know this isn't too complicated, but I'd probably make a mess of it!

Any ideas?

 

 

 

 

Top