]> git.wh0rd.org Git - tt-rss.git/commitdiff
passing --log option to update daemon processes
authorRoland Angerer <dev@rangerer.at>
Mon, 2 Sep 2013 06:54:20 +0000 (08:54 +0200)
committerRoland Angerer <dev@rangerer.at>
Mon, 2 Sep 2013 06:54:20 +0000 (08:54 +0200)
update.php

index ff6b825035288f3b66c17dbd00523c3210f7903a..c1547fa7f7f00033e0f077686a4b39d506918fd4 100755 (executable)
        if (isset($options["daemon"])) {
                while (true) {
                        $quiet = (isset($options["quiet"])) ? "--quiet" : "";
+         $log = isset($options['log']) ? '--log '.$options['log'] : '';
 
-                       passthru(PHP_EXECUTABLE . " " . $argv[0] ." --daemon-loop $quiet");
+                       passthru(PHP_EXECUTABLE . " " . $argv[0] ." --daemon-loop $quiet $log");
                        _debug("Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...");
                        sleep(DAEMON_SLEEP_INTERVAL);
                }