X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=update_daemon2.php;fp=update_daemon2.php;h=e5bc55ee089474dd5696119b2f211c55b7275b5f;hb=a33558a61efc244ad8c809748e6ee64413e3a217;hp=9d948a64d3c5cdea2e19cea5e1fcfa8d9f04c5ae;hpb=f73e03e000d7119b8c9724790e70e4da4fb32cfe;p=tt-rss.git diff --git a/update_daemon2.php b/update_daemon2.php index 9d948a64..e5bc55ee 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -218,10 +218,11 @@ register_shutdown_function('task_shutdown'); $quiet = (isset($options["quiet"])) ? "--quiet" : ""; + $log = function_exists("flock") && isset($options['log']) ? '--log '.$options['log'] : ''; $my_pid = posix_getpid(); - passthru(PHP_EXECUTABLE . " update.php --daemon-loop $quiet --task $j --pidlock $my_pid"); + passthru(PHP_EXECUTABLE . " update.php --daemon-loop $quiet $log --task $j --pidlock $my_pid"); sleep(1);