Changeset

13650:9a66b53a5076

prosodyctl: reload: Assume reload-via-socket if any arguments passed
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Feb 2025 14:47:45 +0000
parents 13649:d2969e163656
children 13651:b9d369f77121
files prosodyctl
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosodyctl	Thu Feb 06 14:46:36 2025 +0000
+++ b/prosodyctl	Thu Feb 06 14:47:45 2025 +0000
@@ -516,6 +516,9 @@
 			return shell.shell(arg);
 		end
 		return shell.shell({ "config", "reload" });
+	elseif arg[1] then
+		show_message("Admin socket not found - is it enabled and is Prosody running?");
+		return 1;
 	end
 
 	local ok, running = prosodyctl.isrunning();