diff options
author | Martin Schwenke <martin@meltin.net> | 2016-12-17 22:48:57 +1100 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-01-16 11:57:08 +0100 |
commit | a9e3b6353892b7ffbe37740d8677274dfb70d62b (patch) | |
tree | 5eec1688dbccb0f79d4a5e24077554b23456e848 /ctdb/config | |
parent | 26b7841aa6e51dfd5330695f21acab620f7dbed4 (diff) | |
download | samba-a9e3b6353892b7ffbe37740d8677274dfb70d62b.tar.gz |
ctdb-scripts: Drop unnecessary function ctdb_check_tcp_init()
The flag this sets is no longer used by ctdb_check_tcp_ports()
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/config')
-rwxr-xr-x | ctdb/config/functions | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/ctdb/config/functions b/ctdb/config/functions index b64443998ed..d3866531de9 100755 --- a/ctdb/config/functions +++ b/ctdb/config/functions @@ -358,24 +358,6 @@ ctdb_check_directories() # usage: ctdb_check_tcp_ports <ports...> ###################################################### -# This flag file is created when a service is initially started. It -# is deleted the first time TCP port checks for that service succeed. -# Until then ctdb_check_tcp_ports() prints a more subtle "error" -# message if a port check fails. -_ctdb_check_tcp_common () -{ - assert_service_name - _d="${CTDB_SCRIPT_VARDIR}/failcount" - _ctdb_service_started_file="${_d}/${service_name}.started" -} - -ctdb_check_tcp_init () -{ - _ctdb_check_tcp_common - mkdir -p "${_ctdb_service_started_file%/*}" # dirname - touch "$_ctdb_service_started_file" -} - # Check whether something is listening on all of the given TCP ports # using the "ctdb checktcpport" command. ctdb_check_tcp_ports() @@ -896,7 +878,6 @@ ctdb_service_start () # Intentionally have this use $service_name as default # shellcheck disable=SC2119 ctdb_counter_init - ctdb_check_tcp_init } ctdb_service_stop () |