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 | c139f46ec0357c09c8fb7cd458ec16c53d8c751c (patch) | |
tree | fbad92285f47d6793a4ed2c75e8af908db1823ce | |
parent | 6d67164438abe237f394d88fbd4d38204aec78e8 (diff) | |
download | prosody-c139f46ec0357c09c8fb7cd458ec16c53d8c751c.tar.gz prosody-c139f46ec0357c09c8fb7cd458ec16c53d8c751c.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.
-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 |