aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Adams <podilarius@yahoo.com>2012-07-31 10:12:09 -0300
committerRichard Adams <podilarius@yahoo.com>2012-07-31 10:12:09 -0300
commitd5848b72fb07d154fd63ac3dfd07c41f37f0cb13 (patch)
tree9104dadfb13293f142ffe9c7a6f4137136c2d436
parentf972a007dda3df2a86c586e34b5fcf084337b6f4 (diff)
downloadpfsense-packages-d5848b72fb07d154fd63ac3dfd07c41f37f0cb13.tar.gz
pfsense-packages-d5848b72fb07d154fd63ac3dfd07c41f37f0cb13.tar.bz2
pfsense-packages-d5848b72fb07d154fd63ac3dfd07c41f37f0cb13.zip
Update config/squid3/proxy_monitor.sh
Change to match 2.1 config also.
-rw-r--r--config/squid3/proxy_monitor.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/squid3/proxy_monitor.sh b/config/squid3/proxy_monitor.sh
index 470c4d94..00430018 100644
--- a/config/squid3/proxy_monitor.sh
+++ b/config/squid3/proxy_monitor.sh
@@ -27,8 +27,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-IS_RUNNING=`ps awx |grep -c "[p]roxy_monitor.sh"`
-if [ $IS_RUNNING -gt 1 ]; then
+if [ `pgrep -f "proxy_monitor.sh"|wc -l` -ge 1 ]; then
exit 0
fi