]> git.mxchange.org Git - friendica.git/blobdiff - bin/daemon.php
"MIRROR_FORWARDED" is removed
[friendica.git] / bin / daemon.php
index f1eb077adde604de570dfa1d6e37017b32098425..d5ef02a8ece961ce73ffb195afaeaa78d940cca6 100755 (executable)
@@ -45,7 +45,7 @@ $longopts = ['foreground'];
 $options = getopt($shortopts, $longopts);
 
 // Ensure that daemon.php is executed from the base path of the installation
-if (!file_exists('boot.php') && (sizeof($_SERVER['argv']) != 0)) {
+if (!file_exists('index.php') && (sizeof($_SERVER['argv']) != 0)) {
        $directory = dirname($_SERVER['argv'][0]);
 
        if (substr($directory, 0, 1) != '/') {
@@ -76,8 +76,8 @@ DI::config()->load();
 if (empty(DI::config()->get('system', 'pidfile'))) {
        die(<<<TXT
 Please set system.pidfile in config/local.config.php. For example:
-
-    'system' => [
+    
+    'system' => [ 
         'pidfile' => '/path/to/daemon.pid',
     ],
 TXT
@@ -199,7 +199,6 @@ while (true) {
        }
 
        if ($do_cron || (!DI::system()->isMaxLoadReached() && Worker::entriesExists() && Worker::isReady())) {
-               Worker::coolDown();
                Worker::spawnWorker($do_cron);
        } else {
                Logger::info('Cool down for 5 seconds', ['pid' => $pid]);