From 4bac2fb2361ea7514b639de91a39ca65d85f87b3 Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Sun, 28 May 2017 14:52:09 -0700 Subject: [PATCH] Add crons and update the uwsgi configuration. --- web/mailman-web/uwsgi.ini | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/web/mailman-web/uwsgi.ini b/web/mailman-web/uwsgi.ini index db329a8..c757d1c 100644 --- a/web/mailman-web/uwsgi.ini +++ b/web/mailman-web/uwsgi.ini @@ -1,11 +1,32 @@ [uwsgi] +# Port on which uwsgi will be listening. http = :8000 + +# Move to the directory wher the django files are. chdir = /opt/mailman-web + +# Use the wsgi file provided with the django project. wsgi-file = wsgi.py + +# Setup default number of processes and threads per process. +master = true process = 2 threads = 2 + +# Drop privielges and don't run as root. uid = 1000 gid = 1000 + +# Setup the log files. req-log = file:/opt/mailman-web-data/uwsgi.log error-log = file:/opt/mailman-web-data/uwsgi-error.log + +# Setup the django_q related worker processes. attach-daemon = ./manage.py qcluster + +# Setup hyperkitty's cron jobs. +cron2 = unique=1 ./manage.py runjobs minutely +cron2 = hour=1,unique=1 ./manage.py runjobs hourly +cron2 = day=1,unique=1 ./manage.py runjobs monthly +cron2 = week=1,unique=1 ./manage.py runjobs weekly +cron2 = month=1,unique=1 ./manage.py runjobs yearly