This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
s2forums/extras/crontab
slav0nic c218f238be move some files to extras/
--HG--
rename : crontab => extras/crontab
rename : optional-requirements.txt => extras/optional-requirements.txt
rename : requirements.txt => extras/requirements.txt
2010-12-09 10:42:18 +02:00

19 lines
No EOL
771 B
Text

#Crontab example for DjangoBB
$DJANGOBB_PROJECT = '<path to djangobb project>'
#for expired sessions (is't needed if you use cache backend for sessions)
* * * * */2 (cd $DJANGOBB_PROJECT; ./manage.py cleanup)
#for django-authopenid
* * * * */2 (cd $DJANGOBB_PROJECT; ./manage.py cleanupnonces)
* * * * */2 (cd $DJANGOBB_PROJECT; ./manage.py cleanupassociations)
#for registration
* * * * 6 (cd $DJANGOBB_PROJECT; ./manage.py cleanupregistration)
#for django-mailer
* * * * * (cd $DJANGOBB_PROJECT; ./manage.py send_mail >> $DJANGOBB_PROJECT/cron_mail.log 2>&1)
*/30 * * * * (cd $DJANGOBB_PROJECT; ./manage.py retry_deferred >> $DJANGOBB_PROJECT/cron_mail_deferred.log 2>&1)
#for DjangoBB unban
* */1 * * * (cd $DJANGOBB_PROJECT; ./manage.py djangobb_unban --by-time)