Update supervisor conf file

This commit is contained in:
Oliver Walters 2021-03-24 08:32:00 +11:00
parent e3f49b8996
commit ce64feb79d

View File

@ -11,24 +11,28 @@
; InvenTree uses django-q for this purpose ; InvenTree uses django-q for this purpose
[supervisord] [supervisord]
;environment=INVENTREE_SRC_DIR="/mnt/c/inventree/InvenTree", INVENTREE_BIN_DIR="/mnt/c/inventree/InvenTree" ; Change this path if log files are stored elsewhere
logfile=/var/log/inventree/supervisor.log logfile=/home/inventree/log/supervisor.log
[program:inventree-server] [program:inventree-server]
user=inventree
directory=/mnt/c/inventree/InvenTree directory=/mnt/c/inventree/InvenTree
command=/mnt/c/inventree/inventree-env/bin/gunicorn -c gunicorn.conf.py InvenTree.wsgi command=/mnt/c/inventree/inventree-env/bin/gunicorn -c gunicorn.conf.py InvenTree.wsgi
startsecs=10
autostart=true autostart=true
autorestart=true autorestart=true
startretries=3 startretries=3
stderr_logfile=/var/log/inventree/server.err.log ; Change these paths if log files are stored elsewhere
stdout_logfile=/var/log/inventree/server.out.log stderr_logfile=/home/inventree/log/server.err.log
user=inventree stdout_logfile=/home/inventree/log/server.out.log
[program:inventree-cluster] [program:inventree-cluster]
user=inventree
directory=/mnt/c/inventree/InvenTree directory=/mnt/c/inventree/InvenTree
command=/mnt/c/inventree/inventree-env/bin/python manage.py qcluster command=/mnt/c/inventree/inventree-env/bin/python manage.py qcluster
startsecs=10
autostart=true autostart=true
autorestart=true autorestart=true
stderr_logfile=/var/log/inventree/cluster.err.log ; Change these paths if log files are stored elsewhere
stdout_logfile=/var/log/inventree/cluster.out.log stderr_logfile=/home/inventree/log/cluster.err.log
user=inventree stdout_logfile=/home/inventree/log/cluster.out.log