aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/squid/proxy_monitor.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/squid/proxy_monitor.sh b/packages/squid/proxy_monitor.sh
index 22d2f81e..545a58da 100644
--- a/packages/squid/proxy_monitor.sh
+++ b/packages/squid/proxy_monitor.sh
@@ -35,7 +35,10 @@ if [ -f /var/run/squid_alarm ]; then
rm /var/run/squid_alarm
fi
-# Squid monitor 1.0
+# Sleep 5 seconds on startup not to mangle with existing boot scripts.
+sleep 5
+
+# Squid monitor 1.1
while [ /bin/true ]; do
if [ ! -f /var/run/squid_alarm ]; then
NUM_PROCS=`ps awux | grep "squid -D" | grep -v "grep" | wc -l | awk '{ print $1 }'`