#!/bin/bash #service monitoring squid3 finalspeed vpn /bin/netstat -tulpn | awk '{print $4}' | awk -F: '{print $4}' | grep ^25$ > /dev/null 2>/dev/null a=$(echo $?) if test $a -ne 0 then /etc/init.d/squid3 restart > /dev/null 2>/dev/null else sleep 0 fi
没有评论:
发表评论