Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.13 KB

File metadata and controls

34 lines (27 loc) · 1.13 KB

OpenQuake Engine WebUI supervisord configuration

To /etc/supervisord/conf.d/webui.conf add:

[program:webui]
; Installation from sources requires the PYTHONPATH to be set:
; environment=PYTHONPATH="/usr/local/openquake/oq-engine:/usr/local/openquake/oq-hazardlib:/usr/local/openquake/oq-nrmllib:/usr/local/openquake/oq-risklib",DJANGO_SETTINGS_MODULE="openquake.engine.settings",OQ_LOCAL_CFG_PATH="openquake_worker.cfg
environment=DJANGO_SETTINGS_MODULE="openquake.server.settings"

; Using embedded django server
; command=python manage.py runserver 0.0.0.0:8800 --noreload
; Using gunicorn
command=gunicorn -w 2 wsgi:application

; This must be set to the oq-engine installation dir
; /usr/lib/python2.7/dist-packages/openquake/server is the default for installation from packages
directory=/usr/lib/python2.7/dist-packages/openquake/server
user=openquake
group=openquake
stdout_logfile=/var/log/openquake/oq-engine-webui.log
stderr_logfile=/var/log/openquake/oq-engine-webui.log

autostart=true
autorestart=true
startsecs=10

; Stop the process using "KILL" instead of "TERM"
stopsignal=KILL
killasgroup=true

; Trusty only
stopasgroup=true