Show Advanced KnowledgeHide Advanced KnowledgeSet the Cronjobs in /etc/crontab
Set the Cronjobs
We need 3 cronjobs for ILIAS for the following proposes:
- Trigger the ILIAS cronjobs by running it every hour
- Trigger the chatserver script - it checks every x minutes, if the service is up and if not, starts it (we already add this)
- Trigger the Lucene-RPC-server script - it checks every x minutes, if the service is up and if not, starts it
- Run certbot to check for new certificates
- This will be done by adding 3 lines to the file /etc/crontab:
nano /etc/crontab
- Put the following linesĀ in that file before the last #:
You can set all ILIAS cronjobs in Administration->General Settings->Cronjobs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #Line that triggers the ILIAS-cronjobs. Read explanation below. #ILIAS <9 */6 * * * * root /usr/bin/php /var/www/html/ilias/cron/cron.php root homer nurderhsv > /opt/iliasdata/log/iliascron.log #ILIAS >=9 */6 * * * * root /usr/bin/php /var/www/html/ilias/cron/cron.php run-jobs root nurderhsv > /opt/iliasdata/log/iliascron.log #Explanation: #root: Username of cronjob user, you may also use www-data #homer: Password of root #nurderhsv: clientname #Runs at 1 a clock in the morning # > /dev/null: We won`t get any mails or other (error-) messages about this job. #Line for Lucene-RPC-Server: checks every 6 minutes if sevice is up */6 * * * * root /etc/init.d/ilserver start >/dev/null 2>&1 #Line forChat-Server: checks every 5 minutes if sevice is up */5 * * * * root /etc/init.d/ilchat start >/dev/null 2>&1 #Certbot * * * * 1 root certbot renew --post-hook "service apache2 restart" # |