This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation.

Difference between revisions of "Cron user manual"

From Group-Office Groupware and CRM Documentation
Jump to: navigation, search
(Job dialog)
(b)
Line 25: Line 25:
 
In the job dialog you can create new jobs and you can update existing ones.
 
In the job dialog you can create new jobs and you can update existing ones.
  
<br clear=all>
+
 
 +
<b>Name</b> : A unique name for the task you are creating/updating
 +
<b>Job</b> : Here you can select the job that needs to be executed (These are PHP files that will be called)
 +
<b>Minutes</b> : 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.
 +
<b>Hours</b> : 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.
 +
<b>Monthdays</b> :
 +
<b>Months</b> :
 +
<b>Weekdays</b> :
 +
<b>Enabled</b> :
 +
<b>Run only once</b> :
 +
<br clear=all> :
  
 
=Troubleshooting=
 
=Troubleshooting=

Revision as of 14:57, 13 March 2013

Overview

Cron menu.png

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

Cron tasks-grid.png

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

Cron job-dialog-enabled.png
Cron job-dialog-disabled.png

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 : Months : Weekdays : Enabled : Run only once :
 :

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