aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-01-09 13:54:14 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-01-09 13:54:14 +0000
commita8b80c7faf6901ef9d32799027ac8bf6aebdc70c (patch)
tree8fa7f19c9fff7de00e647f2e4cef3d9988245b6a /packages/squid
parent3bb79c9904a91db3bde3d3a68b34acfb7389ee3d (diff)
downloadpfsense-packages-a8b80c7faf6901ef9d32799027ac8bf6aebdc70c.tar.gz
pfsense-packages-a8b80c7faf6901ef9d32799027ac8bf6aebdc70c.tar.bz2
pfsense-packages-a8b80c7faf6901ef9d32799027ac8bf6aebdc70c.zip
Make the proxy monitor script start later then the other boot scripts by waiting 5 seconds on 1st launch.
Diffstat (limited to 'packages/squid')
-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 }'`