aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-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