net.http.server: Add prepare_header() and finish_response() to allow sending chunked...
[prosody.git] / prosodyctl
index c3adad4dcffb8b9a1b4fbb0a4e28a13391afdb49..00aeac400752d80dce5821fe33abba154fd8ba66 100755 (executable)
@@ -414,7 +414,11 @@ function commands.start(arg)
        
        local ok, ret = prosodyctl.start();
        if ok then
-               if config.get("*", "daemonize") ~= false then
+               local daemonize = config.get("*", "daemonize");
+               if daemonize == nil then
+                       daemonize = prosody.installed;
+               end
+               if daemonize then
                        local i=1;
                        while true do
                                local ok, running = prosodyctl.isrunning();