From: Martin Schwenke Date: Tue, 16 Aug 2011 23:14:23 +0000 (+1000) Subject: Eventscripts - conditionally inherit ctdbd debug level in each monitor event X-Git-Tag: ctdb-1.11~24^2~6 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=a7eebc06f81a7b0a3fba93759bcbdeabc8c2e86e;p=ctdb.git Eventscripts - conditionally inherit ctdbd debug level in each monitor event Signed-off-by: Martin Schwenke --- 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