From: Roland Angerer Date: Mon, 2 Sep 2013 06:54:20 +0000 (+0200) Subject: passing --log option to update daemon processes X-Git-Tag: 1.10~16^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0f0bbe735da4bb87b55ebe718fd5a4a5cfdbd061;p=tt-rss.git passing --log option to update daemon processes --- diff --git a/update.php b/update.php index ff6b8250..c1547fa7 100755 --- a/update.php +++ b/update.php @@ -162,8 +162,9 @@ 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); }