From 60460d4d2230c785ba392697a1e4cbab6e26ec19 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 6 Feb 2025 14:35:29 +0000 Subject: prosodyctl: stop: Fix detection of whether Prosody is running --- prosodyctl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prosodyctl b/prosodyctl index ff9c92b4..305a0e4d 100755 --- a/prosodyctl +++ b/prosodyctl @@ -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 -- cgit v1.2.3