From 264c83dbd9a515de6fde79de746a7a4fe3f6fd55 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 5 May 2009 13:24:17 +0100 Subject: prosodyctl: status: Show warning if we can't find a running Prosody, and we didn't switch user --- prosodyctl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'prosodyctl') diff --git a/prosodyctl b/prosodyctl index b7fe1d02..f451b7ee 100755 --- a/prosodyctl +++ b/prosodyctl @@ -314,6 +314,11 @@ function commands.status(arg) 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; -- cgit v1.2.3