git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
571865e
)
Eventscripts - ctdb_check_tcp_ports() only prints netstat output if debugging
author
Martin Schwenke
<martin@meltin.net>
Wed, 17 Aug 2011 00:27:01 +0000
(10:27 +1000)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/config/functions
b/config/functions
index e75254a4e32427b487409886f8160f4e56d1185f..617db882a20e6f22e189416ec6a8bd7f43e11786 100755
(executable)
--- a/
config/functions
+++ b/
config/functions
@@
-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