diff options
author | Kim Alvefur <zash@zash.se> | 2019-05-31 18:50:34 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-05-31 18:50:34 +0200 |
commit | 9bca9eb263362d4f6c4f4e4a790b33676c509e03 (patch) | |
tree | 5e312f621a33bbff597933a75d95ac45f6e4e1e8 | |
parent | c3c7aaae0f69ab4b2dfcef94f6224f46613fb191 (diff) | |
download | prosody-9bca9eb263362d4f6c4f4e4a790b33676c509e03.tar.gz prosody-9bca9eb263362d4f6c4f4e4a790b33676c509e03.zip |
prosody: Also log status code passed to exit()
Sometimes you're just too lazy to `echo $?`
-rwxr-xr-x | prosody | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |