diff options
author | Kim Alvefur <zash@zash.se> | 2020-01-26 16:40:21 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-01-26 16:40:21 +0100 |
commit | a15d977f4446660e899dc8c3bafb984163a2de27 (patch) | |
tree | fbad92285f47d6793a4ed2c75e8af908db1823ce /util/prosodyctl.lua | |
parent | 6137789b45618e04d261ef8fba40ad69ebda874f (diff) | |
download | prosody-a15d977f4446660e899dc8c3bafb984163a2de27.tar.gz prosody-a15d977f4446660e899dc8c3bafb984163a2de27.zip |
util.prosodyctl: Pass command line flag to force daemonization on start
Part of the deprecation of the 'daemonize' config option.
Further, it is a bit weird to run `prosodyctl start` and get Prosody
running in the foreground.
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r-- | util/prosodyctl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index 0787b8c3..ea697ffc 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -249,9 +249,9 @@ local function start(source_dir, lua) return false, "already-running"; end if not source_dir then - os.execute(lua .. "./prosody"); + os.execute(lua .. "./prosody -D"); else - os.execute(lua .. source_dir.."/../../bin/prosody"); + os.execute(lua .. source_dir.."/../../bin/prosody -D"); end return true; end |