Rev 613: remove clutter from ctdb log file in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Thu Sep 13 00:03:18 GMT 2007
------------------------------------------------------------
revno: 613
revision-id: tridge at samba.org-20070913000318-6il4eeaj25ibvoth
parent: tridge at samba.org-20070913000256-tgqpmcds3uoei7oe
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge.test2
timestamp: Thu 2007-09-13 10:03:18 +1000
message:
remove clutter from ctdb log file
modified:
config/functions functions-20070601105405-gajwirydr5a9zd6x-1
=== modified file 'config/functions'
--- a/config/functions 2007-07-14 23:29:08 +0000
+++ b/config/functions 2007-09-13 00:03:18 +0000
@@ -157,11 +157,11 @@
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"
More information about the samba-cvs
mailing list