1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-29 02:50:28 +03:00

Revert "events/50.samba: only use wbinfo --ping-dc if available"

This reverts commit 7b73834ba3ac197cc8a3020c111f9bb2c567e70b.

wbinfo --ping-dc is proving too unreliable.

(This used to be ctdb commit 178f429a7b6d1008d35e857b6ca1df6adb60d255)
This commit is contained in:
Martin Schwenke 2010-01-12 21:02:11 +11:00
parent 39f9ded009
commit 96066d8816

View File

@ -247,12 +247,7 @@ case "$1" in
# check winbind is OK
check_ctdb_manages_winbind
[ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
TMP_PING_DC=`wbinfo --help |grep '\-\-ping\-dc' |wc -l`
if test x"$TMP_PING_DC" = x"1"; then
ctdb_check_command "winbind" "wbinfo --ping-dc"
else
ctdb_check_command "winbind" "wbinfo --ping"
fi
ctdb_check_command "winbind" "wbinfo --ping-dc"
}
;;