apache

How To: Check if Apache is running & restart via cron job

Jake Strawn's picture
Posted by Jake Strawn on Mon, 03/03/2008 - 01:24 in

I've personally been running into issues on my server lately that would for some still unknown reason crash Apache at some point during the night, and I'd have to find out when I first loaded up one of the sites on the server the next morning, then manually start Apache back up, and it had become quite tiresome. So I've done some investigating on how I can set up a shell script to check to see if Apache is currently active, and if not, restart the service.

Syndicate content