This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation. |
Difference between revisions of "Cron user manual"
(→Job dialog) |
(→Planned system tasks list) |
||
Line 16: | Line 16: | ||
The red ones will not be executed because they are disabled. | The red ones will not be executed because they are disabled. | ||
+ | |||
The green ones will be executed on the "Next run" time. | The green ones will be executed on the "Next run" time. | ||
Revision as of 15:02, 13 March 2013
Overview
The Cron (Manage system tasks) module is used to administer the tasks that the system needs to do at given times.
You can schedule tasks that need to run on the given times. There is one tasks already set by default in the module.
The Email Reminders task. This task checks if a user has reminders every 5 minutes.
Planned system tasks list
This is the list of all tasks that are planned for your Group-Office installation.
The red ones will not be executed because they are disabled.
The green ones will be executed on the "Next run" time.
Job dialog
In the job dialog you can create new jobs and you can update existing ones.
Name : A unique name for the task you are creating/updating
Job : Here you can select the job that needs to be executed (These are PHP files that will be called)
Minutes : On which minutes of an hour needs the job be executed. Use "0-59" or "*" for every minute. You can also use "/5" for every 5 minutes.
Hours : On which hours of the day needs the job be executed. Use "0-23" or "*" for every hour. You can also use "/5" for every 5 hours.
Monthdays : On which month day needs the job be executed. Use "1-31" or "*" for every day. You can also use "/5" for every 5 days.
Months : On which month needs the job be executed. Use "1-12" or "*" for every month. You can also use "/5" for every 5 months.
Weekdays : On which day in the week needs the job be executed. Use "0-6" or "*" for every day.
Enabled : If this is checked then the job will be called on the given times.
Run only once : If you check this then the job will be called only once on the given time. After that the job will be automatically disabled.
:
Troubleshooting
If the cron module is installed and you have enabled some jobs for it and you found out that the jobs are not executed then you need to check if the server(system) cron deamon (Crontab) is calling the Group-Office cron controller every minute.
On ubuntu systems you can check that by going to the folder:
/etc/cron.d/
In that folder you should find the file:
groupoffice-cron
If the file does not exist then you need to create it and add the following code into it:
* * * * * www-data php /usr/share/groupoffice/groupofficecli.php -r=core/cron/run -c=/etc/groupoffice/config.php > /dev/null