either use the /etc/cron.d/egroupware script from the rpm’s. It runs
for
each domain in the header.inc.php.
…
If you know how your php binary is call, you can of cause use a single
line using that name:
*/5 * * * * apache /usr/bin/php -q
/usr/share/egroupware/phpgwapi/cron/asyncwrapper.php >/dev/null 2>&1
I’ve got it set up using crontab (Via Admin -> Asynchronous timed
services) for each of 2 eGW domains: # crontab -e
…
*/5 * * * * /usr/bin/php5 -qC /var/www/perptest/phpgwapi/cron/
asyncservices.php perptest
*/5 * * * * /usr/bin/php5 -qC /var/www/perptest/phpgwapi/cron/
asyncservices.php apollo_test
…
perptest is the default. When cron runs, it says it’s doing both
domains, but MySQL log shows it connects to the perptest database for
both, so the perptest jobs get run twice (second time there’s nothing
to run), and the apollo_test never gets run.
080905 8:15:04 4074 Connect perptest@localhost on
4074 Query select version()
4074 Init DB perptest
…
080905 8:15:26 4075 Connect perptest@localhost on
4075 Query select version()
4075 Init DB perptest
To fix, I replaced every $_GET[‘domain’] in phpgwapi/cron/
asyncservices.php with $_REQUEST[‘domain’], so it’s there for the
multi-domain support in functions.inc.php, line 116.
Is this something that’s somehow unique to me, or something that’s
configured wrong? I’m using trunk, with no changes to that section,
and fairly default settings.
Nathan Gray
nathan at goarctic dot com
This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers