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 > Scheduled Tasks, go to Domains > domain name > Scheduled Tasks.

To schedule a task:

  1. Click the Server shortcut in the navigation pane.
  2. Click the Scheduled Tasks icon in the Services group.
  3. Select the system user account on whose behalf the task will be executed.
  4. Click Add New Task.
  5. Specify when to run your command:
  6. Specify which command to run. Type it into the Command input box.
  7. Click OK.

To temporarily suspend execution of a scheduled task:

  1. Click the Server shortcut in the navigation pane.
  2. Click the Scheduled Tasks icon in the Services group.
  3. Select the system user account on whose behalf the task is executed.
  4. Locate the task that you want to suspend and click on the command name.
  5. Clear the Enabled check box and click OK.

To resume execution of scheduled task:

  1. Click the Server shortcut in the navigation pane.
  2. Click the Scheduled Tasks icon in the Services group.
  3. Select the system user account on whose behalf the task is executed.
  4. Locate the task whose execution you want to resume and click the command name.
  5. Select the Enabled check box and click OK.

To cancel a task:

  1. Click the Server shortcut in the navigation pane.
  2. Click the Scheduled Tasks icon in the Services group.
  3. Select the system user account on whose behalf the task is executed.
  4. Select a check box to the left of the task that you want to cancel.
  5. Click Remove Selected.
  6. Confirm removal and click OK.