diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-01-28 12:46:59 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-01-28 12:46:59 +0000 |
commit | 028a6e499fc493eaa592411d18f72099cc07a3b4 (patch) | |
tree | b8fbd37cb6cd45c11dfe8cdc5d4342f794ca20e6 /util | |
parent | 34abcc8bd5da00be68279f31b747a341f23d1c11 (diff) | |
download | prosody-028a6e499fc493eaa592411d18f72099cc07a3b4.tar.gz prosody-028a6e499fc493eaa592411d18f72099cc07a3b4.zip |
util.startup: expose current process type (prosody/prosodyctl) in the global prosody object
Diffstat (limited to 'util')
-rw-r--r-- | util/startup.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/startup.lua b/util/startup.lua index 9b8d50f8..a799177c 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -589,6 +589,7 @@ end -- prosodyctl only function startup.prosodyctl() + prosody.process_type = "prosodyctl"; startup.parse_args(); startup.init_global_state(); startup.read_config(); @@ -611,6 +612,7 @@ end 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(); |