Return to Snippet

Revision: 15504
at July 8, 2009 05:00 by paulbooker


Initial Code
Create a file in /etc/cron.hourly/

chmod it to 755

make it contain:

#!/bin/bash

if [ -z "$(pidof httpd)" ]; then service httpd restart; fi

Initial URL

                                

Initial Description

                                

Initial Title
Restarting apache on a cron

Initial Tags
apache

Initial Language
Apache