1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2017-06-08 14:45:43 +10:00 committed by Martin Schwenke
parent 67095c76f6
commit 22f2068d45

View File

@ -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
;;