Merge pull request #298 from rangerer/update_daemon_log
passing --log option to update daemon processes
This commit is contained in:
commit
9e04187845
|
@ -162,8 +162,9 @@
|
||||||
if (isset($options["daemon"])) {
|
if (isset($options["daemon"])) {
|
||||||
while (true) {
|
while (true) {
|
||||||
$quiet = (isset($options["quiet"])) ? "--quiet" : "";
|
$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...");
|
_debug("Sleeping for " . DAEMON_SLEEP_INTERVAL . " seconds...");
|
||||||
sleep(DAEMON_SLEEP_INTERVAL);
|
sleep(DAEMON_SLEEP_INTERVAL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue