#!/bin/sh # Apache Process Monitor pgrep httpd if [ $? -eq 0 ] then # restart apache service httpd restart fi
*/5 * * * * sh /path/to/monitorhttpd.sh >/dev/null 2>&1