Forums / Install & configuration / override cronjob.ini.append not an option?

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.

eZ debug

Timing: Jan 31 2025 01:20:52
Script start
Timing: Jan 31 2025 01:20:52
Module start 'content'
Timing: Jan 31 2025 01:20:52
Module end 'content'
Timing: Jan 31 2025 01:20:52
Script end

Main resources:

Total runtime0.1852 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.0859370.2656
Module start 'content' 0.00650.0137 958.35161,005.7344
Module end 'content' 0.02020.1650 1,964.08593,893.7891
Script end 0.1852  5,857.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00462.4997200.0002
Check MTime0.00130.6809200.0001
Mysql Total
Database connection0.00090.468510.0009
Mysqli_queries0.091249.21531410.0006
Looping result0.00130.72701390.0000
Template Total0.164688.910.1646
Template load0.00080.438910.0008
Template processing0.163888.423910.1638
Override
Cache load0.00060.309910.0006
Sytem overhead
Fetch class attribute can translate value0.00170.900510.0017
XML
Image XML parsing0.00030.140410.0003
General
dbfile0.00794.2599200.0004
String conversion0.00000.002230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs