-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathngsite.cron
35 lines (26 loc) · 1.31 KB
/
ngsite.cron
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This must be set to the directory where eZ Publish is installed.
EZPUBLISHROOT=/path/to/the/ez/publish/directory
# The command used to call the cronjobs
# In production, add --env=prod after "bin/console" to speed up things a bit
EZPUBLISHSCRIPT=bin/console ezpublish:legacy:script runcronjobs.php
# Siteaccess used for operations
SITEACCESS=ngadminui
# Location of the PHP Command Line Interface binary.
PHP=/usr/bin/php
# Disable sending e-mails
MAILTO=""
# Instruct cron to run the main set of cronjobs
# at 6:35am every day
35 6 * * * cd $EZPUBLISHROOT && $PHP $EZPUBLISHSCRIPT -q --siteaccess $SITEACCESS 2>&1
# Instruct cron to run the "infrequent" set of cronjobs
# at 5:20am every Monday
20 5 * * 1 cd $EZPUBLISHROOT && $PHP $EZPUBLISHSCRIPT -q --siteaccess $SITEACCESS infrequent 2>&1
# Instruct cron to run the "frequent" set of cronjobs
# every 15 minutes
*/15 * * * * cd $EZPUBLISHROOT && $PHP $EZPUBLISHSCRIPT -q --siteaccess $SITEACCESS frequent 2>&1
# Instruct cron to run the "ezplatformindexsubtree" set of cronjobs
# every 15 minutes
*/15 * * * * cd $EZPUBLISHROOT && $PHP $EZPUBLISHSCRIPT -q --siteaccess $SITEACCESS ezplatformindexsubtree 2>&1
# Instruct cron to run the "ezflow" set of cronjobs
# every 5 minutes
*/5 * * * * cd $EZPUBLISHROOT && $PHP $EZPUBLISHSCRIPT -q --siteaccess $SITEACCESS ezflow 2>&1