mirror of
https://github.com/samba-team/samba.git
synced 2025-03-26 18:50:30 +03:00
Eventscripts - conditionally inherit ctdbd debug level in each monitor event
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a7eebc06f81a7b0a3fba93759bcbdeabc8c2e86e)
This commit is contained in:
parent
171bef3d68
commit
3e1a0528b8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user