summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2015-03-27 12:04:03 +1100
committerMartin Schwenke <martins@samba.org>2015-03-27 06:40:08 +0100
commit14886ed00c998c2ac4deb70f650584e9b371345d (patch)
tree629d0cd78581342cb674069ae40ebd7474c36130 /ctdb
parent130202d635d8712575fa201a12ef257f4278b862 (diff)
downloadsamba-14886ed00c998c2ac4deb70f650584e9b371345d.tar.gz
ctdb-scripts: Use tcp connection for checking RPC services
It's possible for a RPC service to register only for UDP and not TCP. Since we assume all the NFS operations are over TCP, always check RPC services over TCP. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/config/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/functions b/ctdb/config/functions
index b2738edba89..1b2384ec088 100755
--- a/ctdb/config/functions
+++ b/ctdb/config/functions
@@ -449,7 +449,7 @@ ctdb_check_rpc ()
_localhost="${CTDB_RPCINFO_LOCALHOST:-127.0.0.1}"
- if ! ctdb_check_rpc_out=$(rpcinfo -u $_localhost $progname $version 2>&1) ; then
+ if ! ctdb_check_rpc_out=$(rpcinfo -T tcp $_localhost $progname $version 2>&1) ; then
ctdb_check_rpc_out="ERROR: $progname failed RPC check:
$ctdb_check_rpc_out"
echo "$ctdb_check_rpc_out"