Posted By

paulbooker on 07/08/09


Tagged

apache


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

ghostjam
kubaitis


Restarting apache on a cron


 / Published in: Apache
 

  1. Create a file in /etc/cron.hourly/
  2.  
  3. chmod it to 755
  4.  
  5. make it contain:
  6.  
  7. #!/bin/bash
  8.  
  9. if [ -z "$(pidof httpd)" ]; then service httpd restart; fi

Report this snippet  

You need to login to post a comment.