From a0ec9245f91375c3a4bbd80b0271c1fc209a3936 Mon Sep 17 00:00:00 2001 From: Richard Adams Date: Mon, 30 Jul 2012 15:04:31 -0300 Subject: Update config/squid-reverse/proxy_monitor.sh --- config/squid-reverse/proxy_monitor.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/squid-reverse/proxy_monitor.sh b/config/squid-reverse/proxy_monitor.sh index a6d58e9b..5efe8639 100644 --- a/config/squid-reverse/proxy_monitor.sh +++ b/config/squid-reverse/proxy_monitor.sh @@ -27,6 +27,11 @@ # 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