run="yes"
while [ "$run" == "yes" ]
do
pid=`/usr/bin/pgrep -fl '/usr/local/squid/sbin/squid -s' | /bin/awk '{print $1}'`
if test -z "$pid"
then
#mail to administrator
#$MailPath/mail.pl 1
#mail -s "6060 down" test@163.com
#sleep 10
#pgrep -f tomcat | xargs kill -9
/usr/local/squid/sbin/squid -s
else
#echo CDR collect -- $pid ..
sleep 120
fi
done
阅读(702) | 评论(0) | 转发(0) |