|
Écrit par Xavier
|
|
En admettant que vous ayez un Apache taquin ayant tendance à planter pendant que vous ne le surveillez pas, voici un mini script à placer en crontab toutes les minutes (ou moins) :
#!/bin/sh # Apache watchdog # Crontab : # * * * * * root /root/apache_watchdog
P=`/bin/pidof httpd` if [[ "$P" == "" ]]; then /usr/local/apache/bin/apachectl restart fi
|