ctdb_check_tcp_ports: cope with multiple locations of netcat or nc
authorMichael Adam <obnox@samba.org>
Fri, 30 Jan 2009 15:10:05 +0000 (16:10 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 30 Jan 2009 21:45:39 +0000 (22:45 +0100)
commit3adf100e7f0c04aaf2da9ae4c6984cdb708c3b57
tree1ea43f9a8865b1c57c590618290c95df2ee827ae
parentfedc6983f5dee39152e6f400f89a3e07eab57f0c
ctdb_check_tcp_ports: cope with multiple locations of netcat or nc

This fixes tcp port monitor events on systems, where netcat or nc
is not found in /usr/bin/, Debian, for instance.

The patch also separates the process of finding the binaries and
calling them, moving the detection outside of the loop over the
ports list.

Michael
config/functions