]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-scripts: NFS call-out failures should cause event failure
authorMartin Schwenke <martin@meltin.net>
Thu, 8 Jun 2017 04:45:43 +0000 (14:45 +1000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 19 Jun 2017 09:05:25 +0000 (11:05 +0200)
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>
(cherry picked from commit 22f2068d456759612d340fdcc56276f39a710426)

ctdb/config/events.d/60.nfs

index 15948f58a90930f55f2b81964166108cdb5efc28..9198413fced1e54b9120f4b5bd4f93355f67f50c 100755 (executable)
@@ -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
        ;;