From e9b383cdb22cbf667fc16d55351ff1d71d0e6d9f Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 30 Apr 2021 21:20:14 +0100 Subject: prosodyctl: check config: Add 'gc' to list of global options --- prosodyctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 028e08d8..28e9da43 100755 --- a/prosodyctl +++ b/prosodyctl @@ -837,7 +837,7 @@ function commands.check(arg) local known_global_options = set.new({ "pidfile", "log", "plugin_paths", "prosody_user", "prosody_group", "daemonize", "umask", "prosodyctl_timeout", "use_ipv6", "use_libevent", "network_settings", - "network_backend", "http_default_host", + "network_backend", "http_default_host", "gc", "statistics_interval", "statistics", "statistics_config", }); local config = configmanager.getconfig(); -- cgit v1.2.3 From 3fd3d2cd99284e5641084c5acb485028de535a05 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 11 May 2021 14:15:22 +0100 Subject: prosodyctl about: Report libexpat version if known --- prosodyctl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index 28e9da43..8c0ce66c 100755 --- a/prosodyctl +++ b/prosodyctl @@ -413,7 +413,8 @@ function commands.about(arg) print(""); print("# Lua module versions"); local module_versions, longest_name = {}, 8; - local luaevent =dependencies.softreq"luaevent"; + local luaevent = dependencies.softreq"luaevent"; + local lxp = dependencies.softreq"lxp"; dependencies.softreq"ssl"; dependencies.softreq"DBI"; for name, module in pairs(package.loaded) do @@ -428,6 +429,9 @@ function commands.about(arg) if luaevent then module_versions["libevent"] = luaevent.core.libevent_version(); end + if lxp then + module_versions["libexpat"] = lxp._EXPAT_VERSION; + end local sorted_keys = array.collect(keys(module_versions)):sort(); for _, name in ipairs(sorted_keys) do print(name..":"..string.rep(" ", longest_name-#name), module_versions[name]); -- cgit v1.2.3