From c6c73306209c42fcf30ceacea410c99eeb2d8fac Mon Sep 17 00:00:00 2001 From: Jean Cyr Date: Mon, 29 Apr 2013 23:23:38 -0400 Subject: 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. --- config/unbound/unbound_monitor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/unbound') 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 -- cgit v1.2.3