Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
qhezbatchcron | eZ Publish Legacy | stable |
Version | Compatible with |
---|---|
N/A | N/A |
If you have multiple sites running on eZ Publish, your crontab configuration can get really big. This CLI script allows more compact crontab by configuring all your websites in a config file.
You can define common commands to be ran, each website can add extra command or skip one ore more common ones.
You can define the same or several different user to sudo to before running the commands, recent eZ Publish don't allow the root user to run some scripts.
Then to setup your crontab:
##########################################
SCRIPTROOT=/var/lib/ezpublish/cronjobs/
PHP=/usr/bin/php
35 6 cd $SCRIPTROOT && $PHP runezcronjobs.php generic 2>&1
05 4 cd $SCRIPTROOT && $PHP runezcronjobs.php expired_session 2>&1
20 5 1 cd $SCRIPTROOT && $PHP runezcronjobs.php infrequent 2>&1
20 5 6 cd $SCRIPTROOT && $PHP runezcronjobs.php eztc 2>&1
0,15,30,45 cd $SCRIPTROOT && $PHP runezcronjobs.php frequent 2>&1
/10 cd $SCRIPTROOT && $PHP runezcronjobs.php ezflow 2>&1
/10 cd $SCRIPTROOT && $PHP runezcronjobs.php runscheduledscripts 2>&1