diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-05 13:24:17 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-05 13:24:17 +0100 |
commit | 264c83dbd9a515de6fde79de746a7a4fe3f6fd55 (patch) | |
tree | ced6d715e3355f42f778efceef2bc2a98013f104 /prosodyctl | |
parent | b84c790f0ba57f11bbe6bf01bbbc45337c7b9943 (diff) | |
download | prosody-264c83dbd9a515de6fde79de746a7a4fe3f6fd55.tar.gz prosody-264c83dbd9a515de6fde79de746a7a4fe3f6fd55.zip |
prosodyctl: status: Show warning if we can't find a running Prosody, and we didn't switch user
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |