Merge pull request #298 from rangerer/update_daemon_log

passing --log option to update daemon processes
This commit is contained in:
Andrew Dolgov 2013-09-02 01:35:16 -07:00
commit 9e04187845
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}