2024-09-30 10:11:00 +02:00
|
|
|
diff --git a/admin/inc/class.admin_asyncservice.inc.php b/admin/inc/class.admin_asyncservice.inc.php
|
|
|
|
index 21b1c6d4d1..39f7ffa3e7 100644
|
|
|
|
--- a/admin/inc/class.admin_asyncservice.inc.php
|
|
|
|
+++ b/admin/inc/class.admin_asyncservice.inc.php
|
|
|
|
@@ -99,16 +99,20 @@ class admin_asyncservice
|
2014-12-09 19:01:27 +01:00
|
|
|
{
|
2016-05-25 19:04:49 +02:00
|
|
|
Api\Config::save_value('asyncservice', $GLOBALS['egw_info']['server']['asyncservice']=$_POST['asyncservice'], 'phpgwapi');
|
2009-06-01 20:32:41 +02:00
|
|
|
}
|
|
|
|
+/*
|
|
|
|
if (!$async->only_fallback)
|
|
|
|
{
|
|
|
|
$installed = $async->installed();
|
|
|
|
if (is_array($installed) && isset($installed['cronline']))
|
2006-03-28 01:38:30 +02:00
|
|
|
{
|
2009-06-01 20:32:41 +02:00
|
|
|
+*/
|
|
|
|
$async_use['cron'] = lang('crontab only (recomended)');
|
|
|
|
+/*
|
2006-03-28 01:38:30 +02:00
|
|
|
}
|
2009-06-01 20:32:41 +02:00
|
|
|
}
|
|
|
|
$async_use[''] = lang('fallback (after each pageview)');
|
|
|
|
$async_use['off'] = lang('disabled (not recomended)');
|
|
|
|
+*/
|
2018-10-18 14:32:25 +02:00
|
|
|
echo '<p><b>'.htmlspecialchars(lang('Run Asynchronous services')).'</b>'.
|
2009-06-01 20:32:41 +02:00
|
|
|
' <select name="asyncservice" onChange="this.form.submit();">';
|
|
|
|
foreach ($async_use as $key => $label)
|
2024-09-30 10:11:00 +02:00
|
|
|
@@ -117,7 +121,7 @@ class admin_asyncservice
|
2018-10-18 14:32:25 +02:00
|
|
|
echo "<option value=\"$key\"$selected>".htmlspecialchars($label)."</option>\n";
|
2009-06-01 20:32:41 +02:00
|
|
|
}
|
2018-10-18 14:32:25 +02:00
|
|
|
echo "</select>\n";
|
|
|
|
-
|
2009-06-01 20:32:41 +02:00
|
|
|
+/*
|
2018-10-18 14:32:25 +02:00
|
|
|
if (is_array($installed) && isset($installed['cronline']))
|
|
|
|
{
|
|
|
|
echo ' <input type="submit" name="deinstall" value="'.htmlspecialchars(lang('Deinstall crontab'))."\">\n";
|
2024-09-30 10:11:00 +02:00
|
|
|
@@ -147,6 +151,8 @@ class admin_asyncservice
|
2018-10-18 14:32:25 +02:00
|
|
|
echo '<p><input type="submit" name="install" value="'.htmlspecialchars(lang('Install crontab'))."\">\n".
|
|
|
|
htmlspecialchars(lang("for the times below (empty values count as '*', all empty = every minute)"))."</p>\n";
|
2009-06-01 20:32:41 +02:00
|
|
|
}
|
2018-10-18 14:32:25 +02:00
|
|
|
+*/
|
|
|
|
+ echo '<p>'.htmlspecialchars(lang('Installed crontab')).": /etc/cron.d/egroupware.cron\n";
|
2024-09-30 10:11:00 +02:00
|
|
|
|
2009-06-01 20:32:41 +02:00
|
|
|
echo "<hr><table border=0><tr>\n";
|
2018-10-18 14:32:25 +02:00
|
|
|
foreach ($units as $u => $ulabel)
|
2024-09-30 10:11:00 +02:00
|
|
|
diff --git a/api/src/Egw.php b/api/src/Egw.php
|
|
|
|
index 8226e0c5dc..8542eb370c 100644
|
|
|
|
--- a/api/src/Egw.php
|
|
|
|
+++ b/api/src/Egw.php
|
|
|
|
@@ -641,12 +641,14 @@ class Egw extends Egw\Base
|
2014-04-17 15:56:47 +02:00
|
|
|
_egw_log_exception($ex);
|
|
|
|
}
|
2011-06-17 12:24:40 +02:00
|
|
|
}
|
|
|
|
+/* not needed as rpm uses /etc/cron.d/egroupware
|
2014-04-17 15:56:47 +02:00
|
|
|
// call the asyncservice check_run function if it is not explicitly set to cron-only
|
2011-06-17 12:24:40 +02:00
|
|
|
if (!$GLOBALS['egw_info']['server']['asyncservice']) // is default
|
|
|
|
{
|
2016-05-25 19:04:49 +02:00
|
|
|
$async = new Asyncservice();
|
|
|
|
$async->check_run('fallback');
|
2011-06-17 12:24:40 +02:00
|
|
|
}
|
2016-05-25 19:04:49 +02:00
|
|
|
+*/
|
2011-06-17 12:24:40 +02:00
|
|
|
$this->db->disconnect();
|
|
|
|
}
|
|
|
|
}
|