diff options
author | Matthew Wild <mwild1@gmail.com> | 2025-02-06 14:35:29 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2025-02-06 14:35:29 +0000 |
commit | 60460d4d2230c785ba392697a1e4cbab6e26ec19 (patch) | |
tree | 652a668f9d1953777977d89b65c97e721ebca32d | |
parent | b3d9577ceb069437be621c37d7884931c1855324 (diff) | |
download | prosody-60460d4d2230c785ba392697a1e4cbab6e26ec19.tar.gz prosody-60460d4d2230c785ba392697a1e4cbab6e26ec19.zip |
prosodyctl: stop: Fix detection of whether Prosody is running
-rwxr-xr-x | prosodyctl | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -303,7 +303,11 @@ function commands.stop(arg) service_command_warning("stop"); - if not prosodyctl.isrunning() then + local ok, running = prosodyctl.isrunning(); + if not ok then + show_message(error_messages[running]); + return 1; + elseif not running then show_message("Prosody is not running"); return 1; end |