# HG changeset patch # User Matthew Wild # Date 1738852529 0 # Node ID 4e7ac0e8dfc4b93936f6fe58a41a4a8feeb26ae6 # Parent 7f6f0e47624a63324ac84df1896ad6a4221458f3 prosodyctl: stop: Fix detection of whether Prosody is running diff -r 7f6f0e47624a -r 4e7ac0e8dfc4 prosodyctl --- a/prosodyctl Thu Feb 06 14:34:47 2025 +0000 +++ b/prosodyctl Thu Feb 06 14:35:29 2025 +0000 @@ -303,7 +303,11 @@ 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