Httpd Automatic Start If DOWN, Urgent Assistance Required , please help
Posted on 2003-03-08
I have enter the following command in my crond as you can see the first line is checking if the httpd is running if its down then then it will restart the HTTPD service . The problem which I am getting is whenever I enter those following line in my cron it never work. Is there any other command or any other way you could help me please.
* * * * * /bin/ps ax | /bin/grep '[/]sbin/httpd'> /dev/null 2> /dev/null
*/1 * * * * /bin/ps ax | /bin/grep '[/]sbin/httpd' || service httpd restart> /dev/null 2> /dev/null