ctdb_check_counter_limit() can soon be removed...
Signed-off-by: Martin Schwenke <martin@meltin.net>
) >/dev/null 2>&1 &
ctdb_counter_incr
- (ctdb_check_counter_limit 200 >/dev/null 2>&1) || {
- echo "Reclock file $RECLOCKFILE\" can not be accessed. Shutting down."
+ if ! ctdb_check_counter "quiet" -ge 200 ; then
+ echo "Reclock file \"$RECLOCKFILE\" can not be accessed. Shutting down."
df
sleep 1
ctdb shutdown
- }
+ fi
- ctdb_check_counter_limit 3 quiet
+ ctdb_check_counter "error" -gt 3
;;
*)
ctdb_counter_init
else
ctdb_counter_incr
- ctdb_check_counter_limit
- exit 0 # only count 1 failure per monitor event
+ ctdb_check_counter
+ ctdb_check_counter "quiet" -ge 1 || \
+ echo "WARNING: vsftpd not listening but less than $service_fail_limit consecutive failures, not unhealthy yet"
fi
fi
;;