From 62a1d26e3b2afc14d9bb3636fe9780106cef24f5 Mon Sep 17 00:00:00 2001 From: Richard Adams Date: Mon, 30 Jul 2012 14:02:05 -0300 Subject: Update config/squid3/proxy_monitor.sh --- config/squid3/proxy_monitor.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') diff --git a/config/squid3/proxy_monitor.sh b/config/squid3/proxy_monitor.sh index fa5a87bb..41c16129 100644 --- a/config/squid3/proxy_monitor.sh +++ b/config/squid3/proxy_monitor.sh @@ -27,6 +27,12 @@ # POSSIBILITY OF SUCH DAMAGE. # +IS_RUNNING=`ps awx |grep -c "[p]roxy_monitor.sh"` +if [ $IS_RUNNING -gt 0 ]; then + exit 0 +fi + + set -e LOOP_SLEEP=55 -- cgit v1.2.3