我正在尝试制作 uWSGI开机运行在 Vagrant 盒子上使用 Upstart。所以我创建了/etc/init/uwsgi.conf
以下内容:
# simple uWSGI script
description "uwsgi tiny instance"
start on runlevel [2345]
stop on runlevel [06]
respawn
exec /usr/local/bin/uwsgi --ini /vagrant/share/uwsgi.ini
start uwsgi
如果我从控制台运行,它可以正常启动,但不是在启动时。/var/log/syslog
包含以下内容:
kernel: [ 6.234112] init: uwsgi main process (1017) terminated with status 1
kernel: [ 6.234122] init: uwsgi main process ended, respawning
...
kernel: [ 6.586285] init: uwsgi respawning too fast, stopped
这可能是什么问题?