From 22f2068d456759612d340fdcc56276f39a710426 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Thu, 8 Jun 2017 14:45:43 +1000 Subject: [PATCH] ctdb-scripts: NFS call-out failures should cause event failure Failures in startup/shutdown/releaseip/takeip are currently incorrectly ignored. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12837 Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/config/events.d/60.nfs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index eaa260b7005..9b64d6e408f 100755 --- a/ctdb/config/events.d/60.nfs +++ b/ctdb/config/events.d/60.nfs @@ -256,20 +256,20 @@ is_ctdb_managed_service || exit 0 case "$1" in startup) - nfs_callout "$@" + nfs_callout "$@" || exit $? ;; shutdown) - nfs_callout "$@" + nfs_callout "$@" || exit $? ;; takeip) - nfs_callout "$@" + nfs_callout "$@" || exit $? ctdb_service_set_reconfigure ;; releaseip) - nfs_callout "$@" + nfs_callout "$@" || exit $? ctdb_service_set_reconfigure ;; -- 2.11.4.GIT