Book Contents

Previous Topic

Next Topic

Scheduling Tasks

If you need to run scripts on your server at specific time, use the task scheduling facility on your server to make the system automatically run the scripts for you.

Important: To prohibit control panel users from scheduling tasks on behalf of user "root", create on the server's file system an empty file with name root.crontab.lock in the location /plesk_installation_directory/var/.

During installation of Plesk the following tasks are automatically created:

As all these tasks are related to domain statistics, databases and reports, it is strongly recommended that you neither change nor remove these tasks.

Note. You can also schedule tasks on a per-domain basis. To do so, follow the same procedures listed below, but instead of going to Server > Scheduler Tasks, go to Domains > domain name > Scheduler Tasks.

To schedule a task:

  1. Click the Server shortcut in the navigation pane.
  2. Click the Crontab icon in the Services group.
  3. Click Add New Task.
  4. Specify when to run your command:
  5. Specify which command to run. Type it into the Command input box.
  6. Click OK.

To temporarily suspend execution of a scheduled task:

  1. Click the Server shortcut in the navigation pane.
  2. Click the Crontab icon in the Services group.
  3. Choose a task that you wish to suspend and click on the command name.
  4. Click the Disable icon.

To resume execution of scheduled task:

  1. Click the Server shortcut in the navigation pane.
  2. Click the Crontab icon in the Services group.
  3. Choose a task whose execution you wish to resume and click on the command name.
  4. Click the Enable icon.

To unschedule a task:

  1. Click the Server shortcut in the navigation pane.
  2. Click the Crontab icon in the Services group.
  3. Select a check box to the right of the task that you wish to unschedule.
  4. Click Remove Selected.
  5. Confirm removal and click OK.