aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-02-06 14:47:45 +0000
committerMatthew Wild <mwild1@gmail.com>2025-02-06 14:47:45 +0000
commit08d69fb759a10ad43158df4908773c3879579189 (patch)
tree545f1e1efb76e74a3e39add261d441a345a866da
parent24d50902bd3ee7b5d75eb158ac5b3696df2b88c9 (diff)
downloadprosody-08d69fb759a10ad43158df4908773c3879579189.tar.gz
prosody-08d69fb759a10ad43158df4908773c3879579189.zip
prosodyctl: reload: Assume reload-via-socket if any arguments passed
-rwxr-xr-xprosodyctl3
1 files changed, 3 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index f3c6d784..f8e12a0d 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -516,6 +516,9 @@ function commands.reload(arg)
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();