--- a/util/startup.lua Mon Jan 27 22:28:52 2020 +0000
+++ b/util/startup.lua Tue Jan 28 12:46:59 2020 +0000
@@ -589,6 +589,7 @@
-- prosodyctl only
function startup.prosodyctl()
+ prosody.process_type = "prosodyctl";
startup.parse_args();
startup.init_global_state();
startup.read_config();
@@ -611,6 +612,7 @@
function startup.prosody()
-- These actions are in a strict order, as many depend on
-- previous steps to have already been performed
+ prosody.process_type = "prosody";
startup.parse_args();
startup.init_global_state();
startup.read_config();