使用Django-supervisor(https://github.com/rfk/django-supervisor),我正在尝试找出一种方法,让python myproject/manage.py supervisor --daemonize在我的uwsgi启动脚本启动Django时启动。
下面是我的uwsgi脚本:
root@community:/etc/init# cat uwsgi.conf
#This version is for Community Service
description "uwsgi tiny instance"
start on runlevel [2345]
stop on runlevel [06]
exec uwsgi --die-on-term --ini /home/community/uwsgi/community_forums.ini我能再加一行exec吗?或者最好的方法是什么?
发布于 2014-06-27 02:08:43
创建一个新的启动作业,并将其设置为start on started uwsgi和stop on stopping uwsgi。从django-supervisor行中删除--daemonize选项,并将其设置为exec。
https://stackoverflow.com/questions/24433246
复制相似问题