diff options
author | Phil Davis <phil.davis@world.inf.org> | 2013-01-12 21:52:44 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@world.inf.org> | 2013-01-12 21:52:44 +0545 |
commit | 7e2a830f799954a4f021bbadfbabe0a6aca2546b (patch) | |
tree | ca8afc773bf5baad8b09a45b928cae1084a4d2e1 /config/squid | |
parent | cba9cc31ba3b4be04ca2b662567a0521db3cb392 (diff) | |
download | pfsense-packages-7e2a830f799954a4f021bbadfbabe0a6aca2546b.tar.gz pfsense-packages-7e2a830f799954a4f021bbadfbabe0a6aca2546b.tar.bz2 pfsense-packages-7e2a830f799954a4f021bbadfbabe0a6aca2546b.zip |
Modify to suit squid (2)
Diffstat (limited to 'config/squid')
-rw-r--r-- | config/squid/sqpmon.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/squid/sqpmon.sh b/config/squid/sqpmon.sh index e12acf6f..6053e8ef 100644 --- a/config/squid/sqpmon.sh +++ b/config/squid/sqpmon.sh @@ -1,7 +1,7 @@ #!/bin/sh # $Id$ */ # -# sqpmon.sh +# sqpmon.sh # Copyright (C) 2006 Scott Ullrich # All rights reserved. # @@ -45,7 +45,7 @@ sleep 5 # Squid monitor 1.2 while [ /bin/true ]; do if [ ! -f /var/run/squid_alarm ]; then - NUM_PROCS=`ps auxw | grep "[s]quid -f"|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." | \ @@ -58,7 +58,7 @@ while [ /bin/true ]; do touch /var/run/squid_alarm fi fi - NUM_PROCS=`ps auxw | grep "[s]quid -f"|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." | \ |