equal
deleted
inserted
replaced
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 |