diff options
author | Ermal Luçi <ermal.luci@gmail.com> | 2012-07-31 06:52:14 -0700 |
---|---|---|
committer | Ermal Luçi <ermal.luci@gmail.com> | 2012-07-31 06:52:14 -0700 |
commit | 3ce4412e3a7e9ffc1e247d728c803d704d9d7afc (patch) | |
tree | 638e031e72b9f922bc7f5713c812adbf59aa2372 /config | |
parent | cce14ad283da5eb6504912738e2721144aac6143 (diff) | |
parent | d5848b72fb07d154fd63ac3dfd07c41f37f0cb13 (diff) | |
download | pfsense-packages-3ce4412e3a7e9ffc1e247d728c803d704d9d7afc.tar.gz pfsense-packages-3ce4412e3a7e9ffc1e247d728c803d704d9d7afc.tar.bz2 pfsense-packages-3ce4412e3a7e9ffc1e247d728c803d704d9d7afc.zip |
Merge pull request #307 from Podilarius/patch-7
Update config/squid3/proxy_monitor.sh
Diffstat (limited to 'config')
-rw-r--r-- | config/squid3/proxy_monitor.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/squid3/proxy_monitor.sh b/config/squid3/proxy_monitor.sh index 470c4d94..00430018 100644 --- a/config/squid3/proxy_monitor.sh +++ b/config/squid3/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 |