From a8b80c7faf6901ef9d32799027ac8bf6aebdc70c Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Tue, 9 Jan 2007 13:54:14 +0000 Subject: Make the proxy monitor script start later then the other boot scripts by waiting 5 seconds on 1st launch. --- packages/squid/proxy_monitor.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages') 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 }'` -- cgit v1.2.3