aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Cyr <jcyr@dillobits.com>2013-04-29 23:23:38 -0400
committerJean Cyr <jcyr@dillobits.com>2013-04-29 23:23:38 -0400
commitc6c73306209c42fcf30ceacea410c99eeb2d8fac (patch)
treedb47e33521f83048c4edd034842e4720b71c3f75
parentd35deca0273b72bd9eb7e1f8bef4af351cfead94 (diff)
downloadpfsense-packages-c6c73306209c42fcf30ceacea410c99eeb2d8fac.tar.gz
pfsense-packages-c6c73306209c42fcf30ceacea410c99eeb2d8fac.tar.bz2
pfsense-packages-c6c73306209c42fcf30ceacea410c99eeb2d8fac.zip
There should only be one unbound monitor running at any given time.
Script checks the number of running instances of itself and exits if more than two. Since there should only be one instance running (itself) it should check for more than one.
-rwxr-xr-xconfig/unbound/unbound_monitor.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/unbound/unbound_monitor.sh b/config/unbound/unbound_monitor.sh
index 95cc73f8..042866be 100755
--- a/config/unbound/unbound_monitor.sh
+++ b/config/unbound/unbound_monitor.sh
@@ -43,7 +43,7 @@ fi
PROCS=`/bin/pgrep -f unbound_monitor.sh | wc -l | awk '{print $1}'`
-if [ ${PROCS} -gt 2 ]; then
+if [ ${PROCS} -gt 1 ]; then
echo "There are another unbound monitor proccess running"
exit 0
fi