From ed06f22ae5f6ff73c21d82e583248f0096cb096f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 1 Jan 2019 16:42:52 +0100 Subject: prosody: Move last cleanup and shutdown code into util.startup --- prosody | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'prosody') diff --git a/prosody b/prosody index 164d0f94..f45e9ecb 100755 --- a/prosody +++ b/prosody @@ -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(); -- cgit v1.2.3