aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-10 17:03:57 +0000
committerMario <mario@mariovavti.com>2022-12-10 17:03:57 +0000
commite1c28351734d175476bc8f0d6cdf261dee3c07e0 (patch)
tree50b4659c904c0b2803d57d114a104ccd8655fd6c /boot.php
parent4f9a933108eb0a41671ec9464f1d7fb90c2d2233 (diff)
downloadvolse-hubzilla-e1c28351734d175476bc8f0d6cdf261dee3c07e0.tar.gz
volse-hubzilla-e1c28351734d175476bc8f0d6cdf261dee3c07e0.tar.bz2
volse-hubzilla-e1c28351734d175476bc8f0d6cdf261dee3c07e0.zip
add option to set worker sleep based on load average, remove redundand code and add return to some daemons
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/boot.php b/boot.php
index 1287d3c88..b3452ff71 100644
--- a/boot.php
+++ b/boot.php
@@ -2045,24 +2045,8 @@ function proc_run() {
if (!$arr['run_cmd'])
return;
- if (count($args) && $args[0] === 'php')
+ if (count($args) && $args[0] === 'php') {
$args[0] = ((x(App::$config, 'system')) && (x(App::$config['system'], 'php_path')) && (strlen(App::$config['system']['php_path'])) ? App::$config['system']['php_path'] : 'php');
-
-
- // redirect proc_run statements of legacy daemon processes to the newer Daemon Master object class
- // We will keep this interface until everybody has transitioned. (2016-05-20)
-
- if (strstr($args[1], 'include/')) {
- // convert 'include/foo.php' to 'Foo'
- $orig = substr(ucfirst(substr($args[1], 8)), 0, -4);
- logger('proc_run_redirect: ' . $orig);
- if (file_exists('Zotlabs/Daemon/' . $orig . '.php')) {
- array_shift($args); // daemons are all run by php, pop it off the top of the array
- $args[0] = $orig; // replace with the new daemon name
- logger('Redirecting old proc_run interface: ' . print_r($args, true), LOGGER_DEBUG, LOG_DEBUG);
- Master::Summon($args); // summon the daemon
- return;
- }
}
$args = array_map('escapeshellarg', $args);