summaryrefslogtreecommitdiff
path: root/ctdb/config/events.d
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2015-08-03 19:55:27 +1000
committerAmitay Isaacs <amitay@samba.org>2015-08-29 17:06:25 +0200
commite6b5163bc1c3551a808d3741b4cbac80e15d10d9 (patch)
treee05383fefc1aca715b77047dbcb7c669dbf52616 /ctdb/config/events.d
parentb6a0e4b85699241ba90f25f4c605cbb7a6fc2146 (diff)
downloadsamba-e6b5163bc1c3551a808d3741b4cbac80e15d10d9.tar.gz
ctdb-scripts: Don't shutdown CTDB when memory monitoring fails
Marking the node unhealthy should cause Samba processes to close, possible freeing a stack of memory. If not, then it is somebody else's problem. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/config/events.d')
-rw-r--r--ctdb/config/events.d/05.system4
1 files changed, 0 insertions, 4 deletions
diff --git a/ctdb/config/events.d/05.system b/ctdb/config/events.d/05.system
index 48946cc36f5..d81538817a4 100644
--- a/ctdb/config/events.d/05.system
+++ b/ctdb/config/events.d/05.system
@@ -78,13 +78,9 @@ monitor_filesystem_usage ()
dump_memory_info ()
{
- echo "CRITICAL: Shutting down CTDB!!!"
get_proc "meminfo"
ps auxfww
set_proc "sysrq-trigger" "m"
- ctdb disable
- sleep 3
- ctdb shutdown
}
monitor_memory_usage ()