From a7eebc06f81a7b0a3fba93759bcbdeabc8c2e86e Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 17 Aug 2011 09:14:23 +1000 Subject: [PATCH] Eventscripts - conditionally inherit ctdbd debug level in each monitor event Signed-off-by: Martin Schwenke --- config/events.d/00.ctdb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/events.d/00.ctdb b/config/events.d/00.ctdb index 31f8fdc7..321ba9c7 100755 --- a/config/events.d/00.ctdb +++ b/config/events.d/00.ctdb @@ -63,6 +63,11 @@ case "$1" in update_config_from_tdb & ;; monitor) + # Inherit the debug level from ctdbd on each monitor run. If + # there's a more urgent need then override CTDB_CURRENT_DEBUGLEVEL + # using a file in $CTDB_BASE/rc.local.d/. + ctdb_set_current_debuglevel create + # We should never enter swap, so SwapTotal == SwapFree. [ "$CTDB_CHECK_SWAP_IS_NOT_USED" = "yes" ] && { if [ -n "`grep '^Swap\(Total\|Free\)' /proc/meminfo | uniq -s 10 -u`" ]; then -- 2.34.1