From: Michael Date: Thu, 14 Dec 2017 16:38:51 +0000 (+0000) Subject: The daemon now works fine X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=611c38b3e36fdd7fa77a090e2d3f0a1215d849a4;p=friendica.git The daemon now works fine --- diff --git a/scripts/daemon.php b/scripts/daemon.php old mode 100644 new mode 100755 index 76668adb16..a9b8d1d262 --- a/scripts/daemon.php +++ b/scripts/daemon.php @@ -1,6 +1,7 @@ +#!/usr/bin/env php set_baseurl(Config::get('system', 'url')); load_hooks(); +$spawn = (($_SERVER["argc"] <= 1) || ($_SERVER["argv"][1] == "spawn")); + +if ($spawn) { + Worker::spawnWorker(); + killme(); +} + $run_cron = (($_SERVER["argc"] <= 1) || ($_SERVER["argv"][1] != "no_cron")); + Worker::processQueue($run_cron); Worker::unclaimProcess();