diff options
author | Richard Adams <podilarius@yahoo.com> | 2012-07-31 10:10:56 -0300 |
---|---|---|
committer | Richard Adams <podilarius@yahoo.com> | 2012-07-31 10:10:56 -0300 |
commit | b873ffa9989d0c0eef5fc1f2af6a3ca36a199f36 (patch) | |
tree | 08406a9491495f6d81f081f0c9ffa794131a21d8 /config/squid-reverse | |
parent | f972a007dda3df2a86c586e34b5fcf084337b6f4 (diff) | |
download | pfsense-packages-b873ffa9989d0c0eef5fc1f2af6a3ca36a199f36.tar.gz pfsense-packages-b873ffa9989d0c0eef5fc1f2af6a3ca36a199f36.tar.bz2 pfsense-packages-b873ffa9989d0c0eef5fc1f2af6a3ca36a199f36.zip |
Change the way we keep only one going and no more.
Test and reboot tested. Only 1 starts up. Theoretically, it should not even start 1, but if I set it to greater than 1, 2 opens up and remains open. I guess it is preloading the variables?
Just have to watch the behavior and see if that ever changes.
Diffstat (limited to 'config/squid-reverse')
-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 |