aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/squid-reverse/proxy_monitor.sh5
1 files changed, 5 insertions, 0 deletions
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