From eec6257fd80839f2b544d4819d561e00e032cf49 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Fri, 27 Mar 2015 12:04:03 +1100 Subject: [PATCH] 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 Reviewed-by: Martin Schwenke (Imported from commit 14886ed00c998c2ac4deb70f650584e9b371345d) --- config/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/functions b/config/functions index 71ccd0ac..33a3a3a8 100755 --- a/config/functions +++ b/config/functions @@ -435,7 +435,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" -- 2.34.1