fi
}
+# Only the nested function references its arguments
+# shellcheck disable=SC2120
build_ctdb_options ()
{
ctdb_options=""
dbdir_tmpfs_start
+ # build_ctdb_options() takes no arguments
+ # shellcheck disable=SC2119
build_ctdb_options
export_debug_variables
_counter_file="${CTDB_SCRIPT_VARDIR}/failcount/${_service_name}"
mkdir -p "${_counter_file%/*}" # dirname
}
+# Some code passes an argument
+# shellcheck disable=SC2120
ctdb_counter_init () {
_ctdb_counter_common "$1"
echo "Reconfiguring service \"${service_name}\"..."
ctdb_service_unset_reconfigure
service_reconfigure || return $?
+ # Intentionally have this use $service_name as default
+ # shellcheck disable=SC2119
ctdb_counter_init
}
service_start || return $?
+ # Intentionally have this use $service_name as default
+ # shellcheck disable=SC2119
ctdb_counter_init
ctdb_check_tcp_init
}