Browse Source

Restructured the way, processes are inserted and removed

pull/2774/head
Michael Vogel 5 years ago
parent
commit
1caa87dce6
  1. 2
      boot.php
  2. 2
      include/auth_ejabberd.php
  3. 2
      include/cli_startup.php
  4. 2
      include/cron.php
  5. 2
      include/cronhooks.php
  6. 2
      include/cronjobs.php
  7. 2
      include/dbstructure.php
  8. 2
      include/dbupdate.php
  9. 2
      include/delivery.php
  10. 2
      include/directory.php
  11. 2
      include/discover_poco.php
  12. 2
      include/expire.php
  13. 2
      include/gprobe.php
  14. 2
      include/notifier.php
  15. 2
      include/onepoll.php
  16. 7
      include/poller.php
  17. 2
      include/pubsubpublish.php
  18. 2
      include/queue.php
  19. 2
      include/shadowupdate.php
  20. 2
      include/tagupdate.php
  21. 2
      include/threadupdate.php
  22. 2
      include/update_gcontact.php

2
boot.php

@ -1736,8 +1736,6 @@ function login($register = false, $hiddens=false) {
*/
function killme() {
get_app()->end_process();
if (!get_app()->is_backend())
session_write_close();

2
include/auth_ejabberd.php

@ -58,8 +58,6 @@ if(is_null($db)) {
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
// the logfile to which to write, should be writeable by the user which is running the server
$sLogFile = get_config('jabber','logfile');

2
include/cli_startup.php

@ -19,8 +19,6 @@ function cli_startup() {
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/session.php');
load_config('config');

2
include/cron.php

@ -27,8 +27,6 @@ function cron_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/session.php');
require_once('include/datetime.php');
require_once('include/items.php');

2
include/cronhooks.php

@ -17,8 +17,6 @@ function cronhooks_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/session.php');
require_once('include/datetime.php');

2
include/cronjobs.php

@ -27,8 +27,6 @@ function cronjobs_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/session.php');
require_once('include/datetime.php');
require_once('include/ostatus.php');

2
include/dbstructure.php

@ -1467,8 +1467,6 @@ function dbstructure_run(&$argv, &$argc) {
unset($db_host, $db_user, $db_pass, $db_data);
}
$a->start_process();
if ($argc==2) {
switch ($argv[1]) {
case "update":

2
include/dbupdate.php

@ -16,8 +16,6 @@ function dbupdate_run(&$argv, &$argc) {
unset($db_host, $db_user, $db_pass, $db_data);
}
$a->start_process();
load_config('config');
load_config('system');

2
include/delivery.php

@ -21,8 +21,6 @@ function delivery_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
}
$a->start_process();
require_once("include/session.php");
require_once("include/datetime.php");
require_once('include/items.php');

2
include/directory.php

@ -15,8 +15,6 @@ function directory_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
load_config('config');
load_config('system');

2
include/discover_poco.php

@ -18,8 +18,6 @@ function discover_poco_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/session.php');
require_once('include/datetime.php');

2
include/expire.php

@ -16,8 +16,6 @@ function expire_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/session.php');
require_once('include/datetime.php');
require_once('include/items.php');

2
include/gprobe.php

@ -18,8 +18,6 @@ function gprobe_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/session.php');
require_once('include/datetime.php');

2
include/notifier.php

@ -54,8 +54,6 @@ function notifier_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
}
$a->start_process();
require_once("include/session.php");
require_once("include/datetime.php");
require_once('include/items.php');

2
include/onepoll.php

@ -24,8 +24,6 @@ function onepoll_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/session.php');
require_once('include/datetime.php');
require_once('include/items.php');

7
include/poller.php

@ -333,7 +333,10 @@ function poller_active_workers() {
}
if (array_search(__file__,get_included_files())===0){
poller_run($_SERVER["argv"],$_SERVER["argc"]);
killme();
poller_run($_SERVER["argv"],$_SERVER["argc"]);
get_app()->end_process();
killme();
}
?>

2
include/pubsubpublish.php

@ -70,8 +70,6 @@ function pubsubpublish_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/items.php');
load_config('config');

2
include/queue.php

@ -17,8 +17,6 @@ function queue_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once("include/session.php");
require_once("include/datetime.php");
require_once('include/items.php');

2
include/shadowupdate.php

@ -14,8 +14,6 @@ if(is_null($db)) {
unset($db_host, $db_user, $db_pass, $db_data);
}
$a->start_process();
load_config('config');
load_config('system');

2
include/tagupdate.php

@ -14,8 +14,6 @@ if(is_null($db)) {
unset($db_host, $db_user, $db_pass, $db_data);
}
$a->start_process();
load_config('config');
load_config('system');

2
include/threadupdate.php

@ -14,8 +14,6 @@ if(is_null($db)) {
unset($db_host, $db_user, $db_pass, $db_data);
}
$a->start_process();
load_config('config');
load_config('system');

2
include/update_gcontact.php

@ -16,8 +16,6 @@ function update_gcontact_run(&$argv, &$argc){
unset($db_host, $db_user, $db_pass, $db_data);
};
$a->start_process();
require_once('include/Scrape.php');
require_once("include/socgraph.php");

Loading…
Cancel
Save