override cronjob.ini.append not an option?

Author Message

Kjell Knudsen

Monday 25 October 2004 5:13:52 am

Hi,

I've just upgraded and found that cron started running linkchecks for eZ again. Seems that was because the changes to cronjob.ini was directly in settings - but also seems there was a reason for this. It doesn't seem to want to heed it if I place cronjob.ini.append in the override folder (and clear cache).

-kjell

Kjell Knudsen
http://www.icbl.org

Jordan Hirsch

Thursday 21 December 2006 8:39:26 am

I am having the same problem in 3.8.6 - it is still running the link checker even though I took it out of settings/override/cronjob.ini.append.php.

Me: http://jordan.teamhirsch.com
My blog: http://wiredformusic.blogspot.com
My other company: http://thinkimprov.com
eZ Certification: http://auth.ez.no/certification/verify/402488
eZ Award: http://ez.no/company/news/ez_awards_2007_prize_winners

Bartek Modzelewski

Thursday 21 December 2006 8:47:34 am

Hi

Are you sure that you are "cleaning" array in your override?
Should be sth like this:

[CronjobSettings]
Scripts[]
Scripts[]=workflow.php
Scripts[]=notification.php
#Scripts[]=linkcheck.php
...

Note that in standard cronjob.ini "Scripts[]" before scripts list is missing.

Baobaz
http://www.baobaz.com

Kristof Coomans

Thursday 21 December 2006 8:50:02 am

Do you clear the scripts array in the ini override?

[CronjobSettings]
Scripts[]
Scripts[]=...
Scripts[]=...

Edit: I'm getting slow... ;-)

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Geoff Bentley

Monday 21 April 2008 8:20:54 pm

I had a similar problem and discovered why it wasn't working - runcronjobs.php will look at the standard siteaccess if you don't give it arguments in the right order.

The default ezpublish.cron shows the following example for 3.9.3:

# Instruct cron to run the "frequent" set of cronjobs
# every 15 minutes
0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php frequent -q 2>&1

So you'd naturally think that, like this example, you'd put the options toward the end, e.g:

0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php frequent -q -s my_site 2>&1

However, the runcronjobs script requires a particular argument order:

php runcronjobs.php --help
Usage: runcronjobs.php [OPTION]... [PART]

So the correct setup should read:

0,15,30,45 * * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q -s my_site frequent 2>&1

So, the problem is with the default ezpublish.cron.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.