]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
remove more cruft from the logs
authorAndrew Tridgell <tridge@samba.org>
Thu, 13 Sep 2007 00:39:05 +0000 (10:39 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 13 Sep 2007 00:39:05 +0000 (10:39 +1000)
(This used to be ctdb commit b67f35c483b6cbb5facaa6380c7794709f44213a)

ctdb/config/functions

index e55702f9eebee926df53781f84b47785de2871b2..f7ffd01079f58f26b69a9eb9625d7adb195b8428 100644 (file)
@@ -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