我正在重建我的vps,我想使用主管来管理我的gunicorn / wsgi
django进程.事实上,主管一直在退出流程:
2010-07-23 14:54:40,575 INFO supervisord started with pid 31391 2010-07-23 14:54:41,582 INFO spawned: 'projectx' with pid 31395 2010-07-23 14:54:41,691 INFO exited: projectx (exit status 0; not expected) 2010-07-23 14:54:42,695 INFO spawned: 'projectx' with pid 31401 2010-07-23 14:54:42,801 INFO exited: projectx (exit status 0; not expected) 2010-07-23 14:54:44,806 INFO spawned: 'projectx' with pid 31404 2010-07-23 14:54:44,912 INFO exited: projectx (exit status 0; not expected) 2010-07-23 14:54:47,917 INFO spawned: 'projectx' with pid 31408 2010-07-23 14:54:48,022 INFO exited: projectx (exit status 0; not expected) 2010-07-23 14:54:49,023 INFO gave up: projectx entered FATAL state,too many start retries too quickly
这是我正在使用的配置:
[program:projectx] command=/path/to/project/bin/gunicorn_django -c /path/to/project/project/gunicorn.conf.py /path/to/project/project/production.py user=myuser autostart=true autorestart=true
我已经双重检查了,当它正确生成时,gunicorn_django确实返回状态0.
我尝试明确地将exitcodes = 0,2添加到配置中,但这似乎也没有什么区别.看起来这个过程是正确生成的,但是主管认为它没有.
有没有人知道如何解决这个问题?
谢谢,
比约恩