Eventscripts - ctdb_check_tcp_ports() only prints netstat output if debugging
authorMartin Schwenke <martin@meltin.net>
Wed, 17 Aug 2011 00:27:01 +0000 (10:27 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 17 Aug 2011 00:39:54 +0000 (10:39 +1000)
Use the new debug function to conditionally print the netstat output.

Signed-off-by: Martin Schwenke <martin@meltin.net>
config/functions

index e75254a4e32427b487409886f8160f4e56d1185f..617db882a20e6f22e189416ec6a8bd7f43e11786 100755 (executable)
@@ -358,8 +358,8 @@ ctdb_check_tcp_ports()
 
        # We didn't match the port, so flag an error, print some debug
        if [ ! -f "$_ctdb_service_started_file" ] ; then
-           cat <<EOF
-ERROR: $service_name tcp port $_p is not responding
+           echo "ERROR: $service_name tcp port $_p is not responding"
+debug <<EOF
 $_cmd shows this output:
 $_ns
 EOF