1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-23 06:50:21 +03:00

Eventscripts - ctdb_check_tcp_ports() only prints netstat output if debugging

Use the new debug function to conditionally print the netstat output.

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

(This used to be ctdb commit 44c14aeeb11080980fe07c7396d06843a4870747)
This commit is contained in:
Martin Schwenke 2011-08-17 10:27:01 +10:00
parent 86792724a2
commit 62f654d3d2

View File

@ -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