From d5848b72fb07d154fd63ac3dfd07c41f37f0cb13 Mon Sep 17 00:00:00 2001 From: Richard Adams Date: Tue, 31 Jul 2012 10:12:09 -0300 Subject: Update config/squid3/proxy_monitor.sh Change to match 2.1 config also. --- config/squid3/proxy_monitor.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/squid3/proxy_monitor.sh b/config/squid3/proxy_monitor.sh index 470c4d94..00430018 100644 --- a/config/squid3/proxy_monitor.sh +++ b/config/squid3/proxy_monitor.sh @@ -27,8 +27,7 @@ # POSSIBILITY OF SUCH DAMAGE. # -IS_RUNNING=`ps awx |grep -c "[p]roxy_monitor.sh"` -if [ $IS_RUNNING -gt 1 ]; then +if [ `pgrep -f "proxy_monitor.sh"|wc -l` -ge 1 ]; then exit 0 fi -- cgit v1.2.3