# HG changeset patch # User Matthew Wild # Date 1580215619 0 # Node ID a9c975a0f113e63d0288105e8b93645fbfe9420f # Parent 675d9fbcbaedd664d58e953a94b5fe6b20ace43d util.startup: expose current process type (prosody/prosodyctl) in the global prosody object diff -r 675d9fbcbaed -r a9c975a0f113 util/startup.lua --- 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();