Ezpublish从这两个cron文件中使用哪个cron文件


Which cron file is Ezpublish using from these two CRON files

嗨,我想阻止我的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还在工作,所以我再次检查,我在

中发现了另一个cron文件

/var/spool/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

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

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

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

cd $EZPUBLISHROOT =这将导航到ezpublish的根目录。然后" $PHP runcronjobs.php -q frequency "将在runcronjobs.php上运行PHP命令行,该命令存在于ezpublish的根目录中。

" frequency "是您的cronjob任务组的名称,您可以在cronjob.ini或cronjob.ini. add .php中找到它。

你在那里有这样的东西:(CronjobPart-frequesnt)然后,当运行上述命令时,将运行属于该组的所有脚本。请确保它们位于扩展或内核的cronjob文件夹中[完全不推荐这样做]。

你可以在这里阅读更多。

我尽可能多地解释,也许有些是不需要的。

看来你的问题是一个cron设置问题,但不是eZPublish问题。