Changeset

11831:94cd363116a3

mod_admin_shell: Allow passing an exit code to server:shutdown() Mirroring the internal API
author Kim Alvefur <zash@zash.se>
date Thu, 30 Sep 2021 23:22:51 +0200
parents 11830:7fe2fbfbdb1c
children 11832:30ca1be53829
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Thu Sep 30 23:22:07 2021 +0200
+++ b/plugins/mod_admin_shell.lua	Thu Sep 30 23:22:51 2021 +0200
@@ -330,8 +330,8 @@
 		minutes, (minutes ~= 1 and "s") or "", os.date("%c", prosody.start_time));
 end
 
-function def_env.server:shutdown(reason)
-	prosody.shutdown(reason);
+function def_env.server:shutdown(reason, code)
+	prosody.shutdown(reason, code);
 	return true, "Shutdown initiated";
 end