Some more poller are noe a worker
This commit is contained in:
parent
920160cb28
commit
c1b064c643
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @file util/daemon.php
|
* @file util/daemon.php
|
||||||
* @brief Run the poller from a daemon.
|
* @brief Run the worker from a daemon.
|
||||||
*
|
*
|
||||||
* This script was taken from http://php.net/manual/en/function.pcntl-fork.php
|
* This script was taken from http://php.net/manual/en/function.pcntl-fork.php
|
||||||
*/
|
*/
|
||||||
|
@ -90,8 +90,8 @@ while (true) {
|
||||||
// Just to be sure that this script really runs endlessly
|
// Just to be sure that this script really runs endlessly
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
||||||
// Call the poller
|
// Call the worker
|
||||||
$cmdline = $php.' include/poller.php';
|
$cmdline = $php.' scripts/worker.php';
|
||||||
|
|
||||||
exec($cmdline);
|
exec($cmdline);
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ use Friendica\App;
|
||||||
use Friendica\Core\Worker;
|
use Friendica\Core\Worker;
|
||||||
use Friendica\Core\Config;
|
use Friendica\Core\Config;
|
||||||
|
|
||||||
// Ensure that poller.php is executed from the base path of the installation
|
// Ensure that worker.php is executed from the base path of the installation
|
||||||
if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
|
if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
|
||||||
$directory = dirname($_SERVER["argv"][0]);
|
$directory = dirname($_SERVER["argv"][0]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue