title: Send notification when apache is down
body: <p>Are there any possibilities / options to set the notification when apache is down.</p>
  
  <p>When apache is down, .htaccess file will work?</p>
  
  <p>When the script running on the background in mid night, in the mid of the execution apache server is down / crash, can we set any notification.</p>
  
  <p>Adding few steps for better understanding</p>
  
  <p>step 1 program started
  step 2 variables initialized
  step 3 Read load file, get records from file
  step 4 insert above file contents into into table-x.
  step 5 close db connection</p>
  
  <p>CRON doing above action every one hour.</p>
  
  <p>After above step 3, APACHE crash / down, now i want to send notification to system admin through email. let me know step by step action plan.</p>