aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-31 18:50:34 +0200
committerKim Alvefur <zash@zash.se>2019-05-31 18:50:34 +0200
commitb6b8c443ca10aea6aae5f8bb0596b8b4a9030f42 (patch)
tree5e312f621a33bbff597933a75d95ac45f6e4e1e8
parent132dc809762a15b4c1c638ea0345bf7358caa833 (diff)
downloadprosody-b6b8c443ca10aea6aae5f8bb0596b8b4a9030f42.tar.gz
prosody-b6b8c443ca10aea6aae5f8bb0596b8b4a9030f42.zip
prosody: Also log status code passed to exit()
Sometimes you're just too lazy to `echo $?`
-rwxr-xr-xprosody1
1 files changed, 1 insertions, 0 deletions
diff --git a/prosody b/prosody
index ced319e0..e82318d1 100755
--- a/prosody
+++ b/prosody
@@ -95,4 +95,5 @@ 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);