diff options
author | Ermal Luçi <ermal.luci@gmail.com> | 2012-07-31 06:51:57 -0700 |
---|---|---|
committer | Ermal Luçi <ermal.luci@gmail.com> | 2012-07-31 06:51:57 -0700 |
commit | cce14ad283da5eb6504912738e2721144aac6143 (patch) | |
tree | 08406a9491495f6d81f081f0c9ffa794131a21d8 /config | |
parent | f972a007dda3df2a86c586e34b5fcf084337b6f4 (diff) | |
parent | b873ffa9989d0c0eef5fc1f2af6a3ca36a199f36 (diff) | |
download | pfsense-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.
Diffstat (limited to 'config')
-rw-r--r-- | config/squid-reverse/proxy_monitor.sh | 3 |
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 |