Comparison

util/prosodyctl.lua @ 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
parent 10536:a469d2bcea96
child 10722:3ddc7c9f35dc
comparison
equal deleted inserted replaced
10626:26fb44b61a17 10627:88be11e9f9b9
247 end 247 end
248 if ret then 248 if ret then
249 return false, "already-running"; 249 return false, "already-running";
250 end 250 end
251 if not source_dir then 251 if not source_dir then
252 os.execute(lua .. "./prosody"); 252 os.execute(lua .. "./prosody -D");
253 else 253 else
254 os.execute(lua .. source_dir.."/../../bin/prosody"); 254 os.execute(lua .. source_dir.."/../../bin/prosody -D");
255 end 255 end
256 return true; 256 return true;
257 end 257 end
258 258
259 local function stop() 259 local function stop()