Software /
code /
prosody
Changeset
1086:0b895e1ac713
prosody: Add log messages during shutdown sequence to indicate progress
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 02 May 2009 17:01:21 +0100 |
parents | 1085:1ac11fb753ca |
children | 1087:5e9475bec571 |
files | prosody |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/prosody Sat May 02 16:59:37 2009 +0100 +++ b/prosody Sat May 02 17:01:21 2009 +0100 @@ -195,6 +195,7 @@ socket.sleep(0.2); end +log("info", "Shutdown status: Cleaning up"); eventmanager.fire_event("server-cleanup"); -- Ok, we're quitting I know, but we @@ -202,6 +203,7 @@ server.setquitting(false); for hostname, host in pairs(hosts) do + log("info", "Shutdown status: Closing client connections for %s", hostname) if host.sessions then for username, user in pairs(host.sessions) do for resource, session in pairs(user.sessions) do @@ -211,6 +213,7 @@ end end + log("info", "Shutdown status: Closing outgoing s2s connections from %s", hostname); if host.s2sout then for remotehost, session in pairs(host.s2sout) do if session.close then @@ -222,6 +225,10 @@ end end +log("info", "Shutdown status: Closing all server connections"); server.closeall(); +server.setquitting(true); + eventmanager.fire_event("server-stopped"); +log("info", "Shutdown status: Complete!");