mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 05:07:42 +03:00
prosodyctl: reload: Assume reload-via-socket if any arguments passed
This commit is contained in:
parent
24d50902bd
commit
08d69fb759
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue