22 lines
810 B
Text
22 lines
810 B
Text
Index: scripts/wsrep_sst_rsync.sh
|
|
--- scripts/wsrep_sst_rsync.sh.orig
|
|
+++ scripts/wsrep_sst_rsync.sh
|
|
@@ -127,9 +127,15 @@ check_pid_and_port()
|
|
fi
|
|
final='$'
|
|
else
|
|
- port_info=$($socket_utility $lsof_opts -i ":$port" 2>/dev/null | \
|
|
- grep -w -F '(LISTEN)' || :)
|
|
- final='[[:space:]]'
|
|
+ if [ $fstat_available -ne 0 ]; then
|
|
+ port_info=$($socket_utility $fstat_opts 2>/dev/null | \
|
|
+ grep -E "[[:space:]](\\*|\\[?::\\]?):$port\$")
|
|
+ final=''
|
|
+ else
|
|
+ port_info=$($socket_utility $lsof_opts -i ":$port" 2>/dev/null | \
|
|
+ grep -w -F '(LISTEN)' || :)
|
|
+ final='[[:space:]]'
|
|
+ fi
|
|
fi
|
|
|
|
local busy=0
|