diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-01-17 14:55:28 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-01-17 14:55:28 +0000 |
commit | 52f26ef898832ec0ddc7cd2b733d9ff470803dca (patch) | |
tree | ff16953f06e2070d49bf48698052900969bc4995 /packages/squid/proxy_monitor.sh | |
parent | 4ee0d459c2794313454eddc9188c071dbb8bcebf (diff) | |
download | pfsense-packages-52f26ef898832ec0ddc7cd2b733d9ff470803dca.tar.gz pfsense-packages-52f26ef898832ec0ddc7cd2b733d9ff470803dca.tar.bz2 pfsense-packages-52f26ef898832ec0ddc7cd2b733d9ff470803dca.zip |
Attempt no 2 to correctly start squid at boot.
Diffstat (limited to 'packages/squid/proxy_monitor.sh')
-rw-r--r-- | packages/squid/proxy_monitor.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/squid/proxy_monitor.sh b/packages/squid/proxy_monitor.sh index 05584534..fab2ee54 100644 --- a/packages/squid/proxy_monitor.sh +++ b/packages/squid/proxy_monitor.sh @@ -38,10 +38,10 @@ fi # Sleep 5 seconds on startup not to mangle with existing boot scripts. sleep 5 -# Squid monitor 1.1 +# Squid monitor 1.2 while [ /bin/true ]; do if [ ! -f /var/run/squid_alarm ]; then - NUM_PROCS=`ps auxw | grep "[(]squid) -D"|awk '{print $2}'| wc -l | awk '{ print $1 }'` + NUM_PROCS=`ps auxw | grep "[s]quid -D"|awk '{print $2}'| wc -l | awk '{ print $1 }'` if [ $NUM_PROCS -lt 1 ]; then # squid is down echo "Squid has exited. Reconfiguring filter." | \ @@ -54,7 +54,7 @@ while [ /bin/true ]; do touch /var/run/squid_alarm fi fi - NUM_PROCS=`ps auxw | grep "[(]squid) -D"|awk '{print $2}'| wc -l | awk '{ print $1 }'` + NUM_PROCS=`ps auxw | grep "[s]quid -D"|awk '{print $2}'| wc -l | awk '{ print $1 }'` if [ $NUM_PROCS -gt 0 ]; then if [ -f /var/run/squid_alarm ]; then echo "Squid has resumed. Reconfiguring filter." | \ |