From 1b53ecc445b3e2537f13387aa1e58e4dd078ec64 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 13 Sep 2007 10:03:18 +1000 Subject: remove clutter from ctdb log file (This used to be ctdb commit 54d5dcaaee0498f40bbee5059cc72d0ca75d33b7) --- ctdb/config/functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ctdb/config/functions') diff --git a/ctdb/config/functions b/ctdb/config/functions index 2742d09848..e55702f9ee 100644 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -157,11 +157,11 @@ ctdb_check_tcp_ports() { for p in $wait_ports; do all_ok=1 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 .*LISTEN" > /dev/null ) || all_ok=0 fi [ $all_ok -eq 1 ] || { echo "`date` ERROR: $service_name tcp port $p is not responding" -- cgit