diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2012-07-30 11:10:09 -0700 |
---|---|---|
committer | Marcello Coutinho <marcellocoutinho@gmail.com> | 2012-07-30 11:10:09 -0700 |
commit | 902c61950af6b8ea8263a02232bb0b4f59c10e9e (patch) | |
tree | 720a8f085e58a2f6a1cb47f2f234c483290622c9 | |
parent | 470463d75e84cefcdf28e7fe800d17bd817f465a (diff) | |
parent | a0ec9245f91375c3a4bbd80b0271c1fc209a3936 (diff) | |
download | pfsense-packages-902c61950af6b8ea8263a02232bb0b4f59c10e9e.tar.gz pfsense-packages-902c61950af6b8ea8263a02232bb0b4f59c10e9e.tar.bz2 pfsense-packages-902c61950af6b8ea8263a02232bb0b4f59c10e9e.zip |
Merge pull request #301 from Podilarius/master
To keep proxy_monitor.sh from starting more than one.
-rw-r--r-- | config/squid-reverse/proxy_monitor.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/squid-reverse/proxy_monitor.sh b/config/squid-reverse/proxy_monitor.sh index a6d58e9b..5efe8639 100644 --- a/config/squid-reverse/proxy_monitor.sh +++ b/config/squid-reverse/proxy_monitor.sh @@ -27,6 +27,11 @@ # POSSIBILITY OF SUCH DAMAGE. # +IS_RUNNING=`ps awx |grep -c "[p]roxy_monitor.sh"` +if [ $IS_RUNNING -gt 0 ]; then + exit 0 +fi + set -e LOOP_SLEEP=55 |