From: Martin Schwenke Date: Thu, 8 Jun 2017 04:45:43 +0000 (+1000) Subject: ctdb-scripts: NFS call-out failures should cause event failure X-Git-Tag: ldb-1.1.31~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22f2068d456759612d340fdcc56276f39a710426;p=thirdparty%2Fsamba.git 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 --- 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 ;;