Added sample configuration files for supervisor and apache under contrib/

This commit is contained in:
Roberto Rosario
2011-04-23 22:22:00 -04:00
parent 46ec25b139
commit ba8e8b8c99
4 changed files with 67 additions and 0 deletions

20
contrib/apache/mayan Normal file
View File

@@ -0,0 +1,20 @@
<VirtualHost *:80>
# Uncomment if libapache2-mod-xsendfile is installed
# XSendFile On
# XSendFileAllowAbove On
WSGIScriptAlias / /usr/share/mayan/mayan/wsgi/dispatch.wsgi
<Directory /usr/share/mayan/mayan>
Order deny,allow
Allow from all
</Directory>
ErrorLog /var/log/apache2/mayan_error.log
LogLevel warn
CustomLog /var/log/apache2/mayan_access.log combined
Alias /mayan-site_media "/usr/share/mayan/mayan/site_media/"
<Location "/site_media">
SetHandler None
</Location>
</VirtualHost>

View File

@@ -0,0 +1,5 @@
[program:openoffice]
command = /usr/lib/libreoffice/program/soffice.bin "-accept=socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;" -headless -nodefault -nofirststartwizard -nolockcheck -nologo -norestore
stdout_logfile= /var/log/libreoffice-headless.log
redirect_stderr = true
autostart = true

View File

@@ -0,0 +1,23 @@
; =======================================
; celeryd supervisor example for Django
; =======================================
[program:celery]
command=/usr/share/mayan/bin/python /usr/share/mayan/mayan/manage.py celeryd --loglevel=INFO
directory=/usr/share/mayan/mayan
user=nobody
numprocs=1
stdout_logfile=/var/log/mayan-celeryd.log
stderr_logfile=/var/log/mayan-celeryd.log
autostart=true
autorestart=true
startsecs=10
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600
; if rabbitmq is supervised, set its priority higher
; so it starts first
priority=998

View File

@@ -0,0 +1,19 @@
; ==========================================
; celerybeat supervisor example for Django
; ==========================================
[program:celerybeat]
command=/usr/share/mayan/bin/python /usr/share/mayan/mayan/manage.py celerybeat --schedule=/var/lib/celery/celerybeat-schedule --loglevel=INFO
directory=/usr/share/mayan/mayan
user=nobody
numprocs=1
stdout_logfile=/var/log/mayan-celerybeat.log
stderr_logfile=/var/log/mayan-celerybeat.log
autostart=true
autorestart=true
startsecs=10
; if rabbitmq is supervised, set its priority higher
; so it starts first
priority=999