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 | 43a5cfe0bc34a0dee2cfe255a0f0f909204b45b7 (patch) | |
tree | b8fbd37cb6cd45c11dfe8cdc5d4342f794ca20e6 /util | |
parent | 67382277df7bbd9b286c1cdd477b15b2cfb5455d (diff) | |
download | prosody-43a5cfe0bc34a0dee2cfe255a0f0f909204b45b7.tar.gz prosody-43a5cfe0bc34a0dee2cfe255a0f0f909204b45b7.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(); |