Use the new debug function to conditionally print the netstat output.
Signed-off-by: Martin Schwenke <martin@meltin.net>
# We didn't match the port, so flag an error, print some debug
if [ ! -f "$_ctdb_service_started_file" ] ; then
# 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
$_cmd shows this output:
$_ns
EOF