time=10
while true;do
if killall -0 httpd &> /dev/null ;then
:
else
/usr/local/apache2/bin/httpd -k restart &> /dev/null
echo `date "+%F %T"` restart httpd >> /data/httpd.log
fi
sleep $time
done