Ezpublish使用哪两个cron文件来自这两个CRON文件

时间:2014-08-13 06:57:38

标签: php linux ubuntu cron ezpublish

嗨我想阻止我的crons在ezpublish中运行,

所以在/var/www/ezpublish.cron我评论了所有内容并使用

重新启动了cron服务
sudo service cron restart

ezpublish.cron文件

# This must be set to the directory where eZ Publish is installed.
#EZPUBLISHROOT=/path/to/the/ez/publish/directory

# Location of the PHP Command Line Interface binary.
#PHP=/usr/local/bin/php

# Instruct cron to run the main set of cronjobs
# at 6:35am every day
#35 6 * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q 2>&1

# Instruct cron to run the "infrequent" set of cronjobs
# at 5:20am every Monday
#20 5 * * 1 cd $EZPUBLISHROOT && $PHP runcronjobs.php -q infrequent 2>&1

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

但是今天我发现我的小伙子还在工作,所以我再次检查,我发现了另一个cron文件

  

的/ var /线轴/ cron的/ crontab中/根

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.FrnXNP/crontab installed on Sun Apr  6 04:10:54 2014)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# This must be set to the directory where eZ Publish is installed.
EZPUBLISHROOT=/var/www

# Location of the PHP Command Line Interface binary.
PHP=/usr/bin/php

# Instruct cron to run the main set of cronjobs
# at 6:35am every day
1  * * * * cd /tmp && run-parts --report /etc/cron.daily 2>&1
35 6 * * * cd $EZPUBLISHROOT && $PHP runcronjobs.php -q 2>&1

# Instruct cron to run the "infrequent" set of cronjobs
# at 5:20am every Monday
20 5 * * 1 cd $EZPUBLISHROOT && $PHP runcronjobs.php -q infrequent 2>&1

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

所以Ezpublish使用了哪个cron文件,我很困惑。提前谢谢你

2 个答案:

答案 0 :(得分:2)

'crontab -e'是你机器的cronjobs列表,它不属于ezpublish。

cronjobs如何使用ezpublish是您在列表中看到的命令:

cd $ EZPUBLISHROOT =这将导航到您的ezpublish的根目录。 然后“$ PHP runcronjobs.php -q频繁”将在你的ezpublish根目录中的runcronjobs.php上运行php命令行。

“频繁”是您的cronjob任务组的名称,您可以在cronjob.ini或cronjob.ini.append.php中找到它。

你在那里有这样的事情: [CronjobPart-frequesnt] 然后在运行上述命令时运行属于该组的所有脚本。 确保它们位于您的扩展或内核的cronjob文件夹中[根本不是推荐的方式]。

您可以阅读更多here

我尽可能地解释,也许不需要其中一些。

答案 1 :(得分:1)

您的问题似乎是cron设置问题,但不是eZPublish问题。 eZPublish可以使用任何cron文件。