vmwarecivicrm

Configure scheduled tasks

In order to install the cron task for CiviCRM, follow the steps below:.

  • Run the following command to open the crontab file:

    $ sudo crontab -u root -e
    
  • At the end of the file, add the following line. Replace DOMAIN.COM with the domain name of your server.

    */1 * * * * su daemon -s /bin/sh -c ". /opt/bitnami/scripts/setenv.sh; /opt/bitnami/apps/civicrm/drush/drush -u 1 -r /opt/bitnami/apps/civicrm/htdocs -l DOMAIN.COM civicrm-api job.execute auth=0 -y"
    
  • Save the file and exit.

This cron entry will run the command every 1 minute.

Last modification September 3, 2018