diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-01-09 13:54:14 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-01-09 13:54:14 +0000 |
commit | a8b80c7faf6901ef9d32799027ac8bf6aebdc70c (patch) | |
tree | 8fa7f19c9fff7de00e647f2e4cef3d9988245b6a | |
parent | 3bb79c9904a91db3bde3d3a68b34acfb7389ee3d (diff) | |
download | pfsense-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.
-rw-r--r-- | packages/squid/proxy_monitor.sh | 5 |
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 }'` |