From: Andrew Tridgell Date: Thu, 13 Sep 2007 00:39:05 +0000 (+1000) Subject: remove more cruft from the logs X-Git-Tag: tevent-0.9.20~348^2~2416 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f261ae1911730d67612a139d67fd73360c82736;p=thirdparty%2Fsamba.git remove more cruft from the logs (This used to be ctdb commit b67f35c483b6cbb5facaa6380c7794709f44213a) --- diff --git a/ctdb/config/functions b/ctdb/config/functions index e55702f9eeb..f7ffd01079f 100644 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -66,11 +66,11 @@ ctdb_wait_tcp_ports() { all_ok=1 for p in $wait_ports; do if [ -x /usr/bin/netcat ]; then - /usr/bin/netcat -z 127.0.0.1 $p || all_ok=0 + /usr/bin/netcat -z 127.0.0.1 $p > /dev/null || all_ok=0 elif [ -x /usr/bin/nc ]; then - /usr/bin/nc -z 127.0.0.1 $p || all_ok=0 + /usr/bin/nc -z 127.0.0.1 $p > /dev/null || all_ok=0 elif [ -x /usr/bin/netstat ]; then - (/usr/bin/netstat -a -n | egrep "0.0.0.0:$p .*LISTEN") || all_ok=0 + (/usr/bin/netstat -a -n | egrep "0.0.0.0:$p\s*LISTEN" > /dev/null) || all_ok=0 else echo "`date` - No tool to check tcp ports availabe. can not check in ctdb_wait_tcp_ports" return