diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-09-13 10:03:18 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-09-13 10:03:18 +1000 |
commit | 1b53ecc445b3e2537f13387aa1e58e4dd078ec64 (patch) | |
tree | 3476cb5db6d3e7b7c06026e878e6ba00a15c7535 /ctdb/config/functions | |
parent | a919f6927a4dd30a41beb7f1a59d23333250ae9d (diff) | |
download | samba-1b53ecc445b3e2537f13387aa1e58e4dd078ec64.tar.gz samba-1b53ecc445b3e2537f13387aa1e58e4dd078ec64.tar.xz samba-1b53ecc445b3e2537f13387aa1e58e4dd078ec64.zip |
remove clutter from ctdb log file
(This used to be ctdb commit 54d5dcaaee0498f40bbee5059cc72d0ca75d33b7)
Diffstat (limited to 'ctdb/config/functions')
-rw-r--r-- | ctdb/config/functions | 6 |
1 files changed, 3 insertions, 3 deletions
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" |