[英]Start Django-Supervisor From Upstart in Uwsgi script?
使用Django-supervisor( https://github.com/rfk/django-supervisor ),我试图找出一种使python myproject/manage.py supervisor --daemonize
在我的uwsgi
upstart脚本启动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
我可以添加一个额外的执行行吗? 或最好的方法是什么?
创建一个新的暴发户作业,使其start on started uwsgi
已start on started uwsgi
,然后stop on stopping uwsgi
。 从django-supervisor行中删除--daemonize选项,并使其成为可执行文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.