Rev 615: remove more cruft from the logs in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Thu Sep 13 00:39:05 GMT 2007


------------------------------------------------------------
revno: 615
revision-id: tridge at samba.org-20070913003905-50drb150aqa96fo6
parent: tridge at samba.org-20070913002448-dh97gw7kfv4iavem
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge.test2
timestamp: Thu 2007-09-13 10:39:05 +1000
message:
  remove more cruft from the logs
modified:
  config/functions               functions-20070601105405-gajwirydr5a9zd6x-1
=== modified file 'config/functions'
--- a/config/functions	2007-09-13 00:03:18 +0000
+++ b/config/functions	2007-09-13 00:39:05 +0000
@@ -66,11 +66,11 @@
   	  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



More information about the samba-cvs mailing list