# HG changeset patch # User Matthew Wild # Date 1241526257 -3600 # Node ID 8a7bc1a5eae6af13b6805db59c2bbf4c6790c9f9 # Parent c463e30da312bb641b9ae40ce464ba7bed395de2 prosodyctl: status: Show warning if we can't find a running Prosody, and we didn't switch user diff -r c463e30da312 -r 8a7bc1a5eae6 prosodyctl --- a/prosodyctl Tue May 05 13:23:46 2009 +0100 +++ b/prosodyctl Tue May 05 13:24:17 2009 +0100 @@ -314,6 +314,11 @@ return 0; else show_message("Prosody is not running"); + if not switched_user and current_uid ~= 0 then + print("\nNote: You will also see this if prosodyctl is not running under the same"); + print(" user account as Prosody. Try running as root (e.g. with 'sudo' in front) to"); + print(" gain access to Prosody's real status."); + end return 2 end return 1;