Release candidate
...
Administration
Background tasks

Configuring Cron for Linux

6min

The Cron job scheduler is one of the components of the Linux operating system.

It is used to run certain scripts on a schedule.

Passwork version 7 and above has a special script that is responsible for running background tasks:

shell


It can be executed in manual mode or configured to be executed by Cron scheduler.

We recommend testing the script in manual mode first. To do this, perform the following actions:

shell


Check the /var/www/files/logs/tasks/ for errors.

The user must have write permissions to the log folder

Setting up Cron

Set up a startup for every minute:

  • Open the Crontab settings from the user web server:
DEB
RPM

  • Add the next line and save the changes:
shell


Testing and troubleshooting

Open Passwork and log in as Administrator/Owner and click the Background Tasks tab.

If the configuration is correct, a message will be displayed that the scheduler is configured:

Document image


If you see a message that the scheduler is not configured, the execution errors are located in /var/www/files/logs/tasks/

If you need help in solving the problem, you can send this file to Passwork technical support.