Comparison

util/prosodyctl.lua @ 10720:6e46fefe956c 0.11

util.prosodyctl: Tell prosody do daemonize via command line flag (fixes #1514) Backport of 88be11e9f9b9
author Kim Alvefur <zash@zash.se>
date Sun, 26 Jan 2020 16:40:21 +0100
parent 8883:3f975bbfec3b
child 10722:3ddc7c9f35dc
comparison
equal deleted inserted replaced
10709:fcf7f50ccdd0 10720:6e46fefe956c
236 end 236 end
237 if ret then 237 if ret then
238 return false, "already-running"; 238 return false, "already-running";
239 end 239 end
240 if not source_dir then 240 if not source_dir then
241 os.execute("./prosody"); 241 os.execute("./prosody -D");
242 else 242 else
243 os.execute(source_dir.."/../../bin/prosody"); 243 os.execute(source_dir.."/../../bin/prosody -D");
244 end 244 end
245 return true; 245 return true;
246 end 246 end
247 247
248 local function stop() 248 local function stop()