在Ubuntu 14.04上,我们有Django(gunicorn)的2个工作站点的主管。他们的配置是相似的。一切都很好,主管正确地重新启动。在添加1个以上的网站后 - sudo service supervisor restart
他关闭了,但没有关闭。我必须点击sudo service start
启动主管。
这是我的配置:
supervisord.conf :
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the 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 a unix:// URL for a 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’
为什么在添加1个以上的网站后,主管没有正确重启?