From cb438ecfd487c235e852fbdf85526fdc106868f3 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 11 Sep 2017 10:57:27 +1000 Subject: [PATCH] ctdb-scripts: Drop all public IPs in the "shutdown" event This is functionally the same as ctdb_release_all_ips(). Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/config/events/legacy/10.interface.script | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ctdb/config/events/legacy/10.interface.script b/ctdb/config/events/legacy/10.interface.script index d87f6c52c58..8db6b5f42fe 100755 --- a/ctdb/config/events/legacy/10.interface.script +++ b/ctdb/config/events/legacy/10.interface.script @@ -158,6 +158,10 @@ startup) monitor_interfaces ;; +shutdown) + drop_all_public_ips + ;; + takeip) iface=$2 ip=$3