aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <ermal.luci@gmail.com>2012-07-31 06:51:57 -0700
committerErmal Luçi <ermal.luci@gmail.com>2012-07-31 06:51:57 -0700
commitcce14ad283da5eb6504912738e2721144aac6143 (patch)
tree08406a9491495f6d81f081f0c9ffa794131a21d8
parentf972a007dda3df2a86c586e34b5fcf084337b6f4 (diff)
parentb873ffa9989d0c0eef5fc1f2af6a3ca36a199f36 (diff)
downloadpfsense-packages-cce14ad283da5eb6504912738e2721144aac6143.tar.gz
pfsense-packages-cce14ad283da5eb6504912738e2721144aac6143.tar.bz2
pfsense-packages-cce14ad283da5eb6504912738e2721144aac6143.zip
Merge pull request #306 from Podilarius/patch-6
Change the way we keep only one going and no more.
-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