This documentation is for to the latest version available in our plugins store. For an oldest documentation, see the README file inside the plugin archive.
This plugin provides a cron time-based job scheduler.
Administrators give cron job permissions to their resellers, and the resellers give cron job permissions to their customers according their own permissions. For instance, a reseller will be able to give the full cron job permission to a customer only if he has also this permission.
Administrators can also add their own cron jobs using their own interface which is less restricted than the customer interface in the sense that they can set the UNIX user to use for the cron job execution while the customers cannot.
Each cron job is added in the crontab file (see crontab(5)) that belongs to the UNIX user under which the cron command must be run. For customers, this is the Web user as created by i-MSCP.
You can install this package by executing the following command:
# aptitude update && aptitude install msmtp
Note: The msmtp package is required to allow cron to send email notifications from the jailed environment
Note: Depending on your system and if support for jailed cron jobs is available, installation can take up to several minutes. Time is needed to build jail.
Note: Prior any update attempt, do not forget to read the UPDATE file inside the plugin archive.
If this plugin is already activated and if you want enable support for jailed cron jobs later on, you must follow these instructions:
Three types of cron jobs are available, which are in order: URL, Jailed and Full.
The URL cron jobs are always available. They allow to schedule URL commands executed via GNU Wget. The commands must be valid HTTP(s) URLs.
Note: When a customer has permission for jailed cron jobs, the URL cron jobs are run inside the jailed environment, else they are run outside the jailed environment. This is by design, and this do not change anything from the customer point of view.
The jailed cron jobs allow to schedule Shell commands which are run through the Shell interpreter in a jailed environment. By default the plugin will create a jailed environment which provides:
Note: Only one jailed environment is created for all jailed cron jobs. The most important here, is that the cron jobs cannot break the whole system.
The jailed cron jobs are available only when the i-MSCP InstantSSH plugin is also installed. This plugin reuses the jail builder library which is provided by the InstantSSH plugin to manage the jailed environment.
The jailed cron jobs doesn't apply to administrators.
The full cron jobs are identical to the jailed cron jobs, excepted the fact that the Shell commands are not run inside a jailed environment. Such cron jobs should be reserved to trusted users.
The plugin handles the crontab files automatically. You must note that any manual change made in a crontab file which is under the control of this plugin will be automatically overridden on next processing. Therefore, once that a crontab file is under the control of this plugin, you must use the cron jobs interface provided by this plugin to add, edit or delete a cron job in this file.
A crontab file is under the control of this plugin as soon as you add a cron task for the user to which it belong to, through the cron jobs interface provided by this plugin.
The cron job permissions interface allow to give cron job permissions, either to the resellers in the context of the administrators, or to customers in the context of resellers.
Note: When cron job permissions are updated, any cron job which doesn't fit with the new permissions are simply deleted. For instance, if the execution frequency of a specific cron job is lower than the new cron jobs frequency limit, the cron job is automatically removed.
The cron jobs interface allows administrators and customers to add, edit and delete cron jobs.
See the config.php file inside the archive.
Note: When changing a configuration parameter in the plugin configuration file, do not forget to trigger plugin change by updating the plugin list through the plugin management interface.
i-MSCP CronJobs plugin @author Laurent Declercq <[email protected]> @copyright (C) 2014-2015 Laurent Declercq @license i-MSCP License <http://www.i-mscp.net/license-agreement.html>
See the LICENSE file inside the plugin archive for further details.