From 0439f52af5efe8f87b0a06082408a4899fac0b77 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Wed, 14 Jun 2017 18:12:29 +0200 Subject: [PATCH] documentation regarding cron --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 4d27a325..ccf5b24c 100644 --- a/readme.md +++ b/readme.md @@ -181,7 +181,8 @@ If weekly emails are required then cron must be edited to fire periodically djan ``` > crontab -e -*/5 * * * * source /home/ubuntu/.bashrc && source /home/ubuntu/work/your-project/bin/activate && python /home/ubuntu/work/your-project/src/manage.py runcrons > /home/ubuntu/cronjob.log +SHELL=/bin/bash +*/30 * * * * source /var/www/scheduling-system/env/bin/activate && python /var/www/scheduling-system/smash/manage.py runcrons >> /var/log/django-cronjob.log 2>&1 ``` ## Operations @@ -200,4 +201,4 @@ example: ``` ./manage.py holidays 2017 2018 2019 -``` \ No newline at end of file +``` -- GitLab