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.

eZ debug

Timing: Jan 18 2025 19:16:48
Script start
Timing: Jan 18 2025 19:16:48
Module start 'layout'
Timing: Jan 18 2025 19:16:48
Module start 'content'
Timing: Jan 18 2025 19:16:49
Module end 'content'
Timing: Jan 18 2025 19:16:49
Script end

Main resources:

Total runtime0.8107 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.1484152.6406
Module start 'layout' 0.00780.0043 740.789139.4766
Module start 'content' 0.01220.7969 780.2656689.8438
Module end 'content' 0.80910.0015 1,470.109416.1250
Script end 0.8106  1,486.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4729160.0002
Check MTime0.00150.1890160.0001
Mysql Total
Database connection0.00150.187510.0015
Mysqli_queries0.737390.9473690.0107
Looping result0.00100.1186670.0000
Template Total0.768094.720.3840
Template load0.00270.332320.0013
Template processing0.765394.404720.3827
Template load and register function0.00010.012310.0001
states
state_id_array0.00150.181710.0015
state_identifier_array0.00220.266620.0011
Override
Cache load0.00240.2915330.0001
Sytem overhead
Fetch class attribute can translate value0.00050.064550.0001
Fetch class attribute name0.00190.236090.0002
XML
Image XML parsing0.00430.531450.0009
class_abstraction
Instantiating content class attribute0.00000.001990.0000
General
dbfile0.00290.3627340.0001
String conversion0.00030.030940.0001
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs