aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-01-26 16:40:21 +0100
committerKim Alvefur <zash@zash.se>2020-01-26 16:40:21 +0100
commitc139f46ec0357c09c8fb7cd458ec16c53d8c751c (patch)
treefbad92285f47d6793a4ed2c75e8af908db1823ce
parent6d67164438abe237f394d88fbd4d38204aec78e8 (diff)
downloadprosody-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.lua4
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