aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid-reverse/proxy_monitor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/squid-reverse/proxy_monitor.sh')
-rw-r--r--config/squid-reverse/proxy_monitor.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/config/squid-reverse/proxy_monitor.sh b/config/squid-reverse/proxy_monitor.sh
index edf6b68e..17de3997 100644
--- a/config/squid-reverse/proxy_monitor.sh
+++ b/config/squid-reverse/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