Changeset

10627:88be11e9f9b9

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.
author Kim Alvefur <zash@zash.se>
date Sun, 26 Jan 2020 16:40:21 +0100
parents 10626:26fb44b61a17
children 10628:25e178edbc2c
files util/prosodyctl.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/prosodyctl.lua	Sun Jan 26 14:35:35 2020 +0100
+++ b/util/prosodyctl.lua	Sun Jan 26 16:40:21 2020 +0100
@@ -249,9 +249,9 @@
 		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