util/prosodyctl.lua
changeset 9785 161411a41377
parent 8886 3f975bbfec3b
child 10136 b59535964e81
--- a/util/prosodyctl.lua	Thu Jan 10 14:54:34 2019 +0100
+++ b/util/prosodyctl.lua	Thu Jan 10 14:57:26 2019 +0100
@@ -229,7 +229,8 @@
 	return true, signal.kill(pid, 0) == 0;
 end
 
-local function start(source_dir)
+local function start(source_dir, lua)
+	lua = lua and lua .. " " or "";
 	local ok, ret = isrunning();
 	if not ok then
 		return ok, ret;
@@ -238,9 +239,9 @@
 		return false, "already-running";
 	end
 	if not source_dir then
-		os.execute("./prosody");
+		os.execute(lua .. "./prosody");
 	else
-		os.execute(source_dir.."/../../bin/prosody");
+		os.execute(lua .. source_dir.."/../../bin/prosody");
 	end
 	return true;
 end