Software /
code /
prosody
Comparison
prosodyctl @ 1115:8a7bc1a5eae6
prosodyctl: status: Show warning if we can't find a running Prosody, and we didn't switch user
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 05 May 2009 13:24:17 +0100 |
parent | 1114:c463e30da312 |
child | 1120:23fa69b911f7 |
comparison
equal
deleted
inserted
replaced
1114:c463e30da312 | 1115:8a7bc1a5eae6 |
---|---|
312 end | 312 end |
313 show_message("Prosody is running with PID %s", ret or "(unknown)"); | 313 show_message("Prosody is running with PID %s", ret or "(unknown)"); |
314 return 0; | 314 return 0; |
315 else | 315 else |
316 show_message("Prosody is not running"); | 316 show_message("Prosody is not running"); |
317 if not switched_user and current_uid ~= 0 then | |
318 print("\nNote: You will also see this if prosodyctl is not running under the same"); | |
319 print(" user account as Prosody. Try running as root (e.g. with 'sudo' in front) to"); | |
320 print(" gain access to Prosody's real status."); | |
321 end | |
317 return 2 | 322 return 2 |
318 end | 323 end |
319 return 1; | 324 return 1; |
320 end | 325 end |
321 | 326 |