aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/squid3/proxy_monitor.sh6
1 files changed, 6 insertions, 0 deletions
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