diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-01 16:42:52 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-01 16:42:52 +0100 |
commit | ed06f22ae5f6ff73c21d82e583248f0096cb096f (patch) | |
tree | 7bde8bff8db2fefb9d3523fbb7d3b5c74f474d2b /prosody | |
parent | f9478ab242518fede7c09928817028d768997068 (diff) | |
download | prosody-ed06f22ae5f6ff73c21d82e583248f0096cb096f.tar.gz prosody-ed06f22ae5f6ff73c21d82e583248f0096cb096f.zip |
prosody: Move last cleanup and shutdown code into util.startup
Diffstat (limited to 'prosody')
-rwxr-xr-x | prosody | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -78,18 +78,6 @@ local function loop() end end -local function cleanup() - prosody.log("info", "Shutdown status: Cleaning up"); - prosody.events.fire_event("server-cleanup"); -end - loop(); -prosody.log("info", "Shutting down..."); -cleanup(); -prosody.events.fire_event("server-stopped"); -prosody.log("info", "Shutdown complete"); - -prosody.log("debug", "Shutdown reason was: %s", prosody.shutdown_reason or "not specified"); -prosody.log("debug", "Exiting with status code: %d", prosody.shutdown_code or 0); -os.exit(prosody.shutdown_code, true); +startup.shutdown(); |