python - Why supervisor doesn't start after `restart` comand? -


on ubuntu 14.04 have supervisor 2 working sites on django (gunicorn). configs similar. good, supervisor correctly restart , up. after adding 1 more site - on sudo service supervisor restart shut down, doesn't up. , must hit sudo service start start supervisor.

here config:

supervisord.conf:

[unix_http_server] file=/var/run/supervisor.sock   ; (the path socket file) chmod=0700                       ; sockef file mode (default 0700)  [supervisord] logfile=/var/log/supervisor/supervisord.log ; (main log file;default $cwd/supervisord.log) pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid) childlogdir=/var/log/supervisor            ; ('auto' child log dir, default $temp) loglevel=debug  [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface  [supervisorctl] serverurl=unix:///var/run/supervisor.sock ; use unix:// url  unix socket  [include] files = /etc/supervisor/conf.d/*/*.conf /etc/supervisor/conf.d/*.conf 

gunicorn.conf:

[program:gunicorn] autostart=true autorestart=true directory=/home/project/ command=/home/project/env/bin/gunicorn -b 127.0.0.1:8000 config.wsgi:application stderr_logfile=/var/log/supervisor/project/gunicorn.err.log stdout_logfile=/var/log/supervisor/project/gunicorn.out.log environment=some_vars=‘hello’ 

why supervisor doesn't restart correctly after adding 1 more site?


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -