ctdb-scripts: Simplify TCP port checking
authorMartin Schwenke <martin@meltin.net>
Sat, 17 Dec 2016 11:40:05 +0000 (22:40 +1100)
committerMartin Schwenke <martins@samba.org>
Mon, 16 Jan 2017 10:57:08 +0000 (11:57 +0100)
commit26b7841aa6e51dfd5330695f21acab620f7dbed4
treede13792e126e9e15c71d5d2034500d5faff7b34f
parente70e77383ca0e1ea9ccbe3f7698f0c6e3ba3c889
ctdb-scripts: Simplify TCP port checking

Commit 86792724a2a911da9cd3e75622d35084c88eb8ce added complications on
top of the multiple TCP port checking methods that used to exist.
Life is simpler now and the cause of any failures is obvious.  So just
print a simple message if the port check fails.

Tweak tests to match changes.  Drop one test that becomes a duplicate.

Temporarily tweak ctdb_check_command() so that it passes shellcheck
tests.  It will be removed anyway in a subsequent commit.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/functions
ctdb/tests/eventscripts/40.vsftpd.monitor.002.sh
ctdb/tests/eventscripts/50.samba.monitor.103.sh
ctdb/tests/eventscripts/50.samba.monitor.104.sh
ctdb/tests/eventscripts/50.samba.monitor.107.sh [deleted file]