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: samba-4.5.11~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e753fdb345bf6f75a4366eefe4195f6fc69db5c;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 (cherry picked from commit 22f2068d456759612d340fdcc56276f39a710426) --- diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index 15948f58a90..9198413fced 100755 --- a/ctdb/config/events.d/60.nfs +++ b/ctdb/config/events.d/60.nfs @@ -258,20 +258,20 @@ ctdb_service_check_reconfigure 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 ;;