Update example supervisor configuration file
supervisord should run as root and spawn the lemur process as the lemur user. I also added the LEMUR_CONF environment variable because it was not reading the configuration file in by default.
This commit is contained in:
parent
9b927cfcc2
commit
c80559005f
|
@ -257,13 +257,12 @@ Create a configuration file named supervisor.ini::
|
||||||
nodaemon=false
|
nodaemon=false
|
||||||
minfds=1024
|
minfds=1024
|
||||||
minprocs=200
|
minprocs=200
|
||||||
user=lemur
|
|
||||||
|
|
||||||
[program:lemur]
|
[program:lemur]
|
||||||
command=python /path/to/lemur/manage.py manage.py start
|
command=python /path/to/lemur/manage.py manage.py start
|
||||||
|
|
||||||
directory=/path/to/lemur/
|
directory=/path/to/lemur/
|
||||||
environment=PYTHONPATH='/path/to/lemur/'
|
environment=PYTHONPATH='/path/to/lemur/',LEMUR_CONF='/home/lemur/.lemur/lemur.conf.py'
|
||||||
user=lemur
|
user=lemur
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
|
|
Loading…
Reference in New Issue