316 show_message("Prosody is running with PID %s", ret or "(unknown)"); |
316 show_message("Prosody is running with PID %s", ret or "(unknown)"); |
317 return 0; |
317 return 0; |
318 else |
318 else |
319 show_message("Prosody is not running"); |
319 show_message("Prosody is not running"); |
320 if not switched_user and current_uid ~= 0 then |
320 if not switched_user and current_uid ~= 0 then |
321 print("\nNote: You will also see this if prosodyctl is not running under the same"); |
321 print("\nNote:") |
322 print(" user account as Prosody. Try running as root (e.g. with 'sudo' in front) to"); |
322 print(" You will also see this if prosodyctl is not running under"); |
323 print(" gain access to Prosody's real status."); |
323 print(" the same user account as Prosody. Try running as root (e.g. "); |
|
324 print(" with 'sudo' in front) to gain access to Prosody's real status."); |
324 end |
325 end |
325 return 2 |
326 return 2 |
326 end |
327 end |
327 return 1; |
328 return 1; |
328 end |
329 end |