【发布时间】:2014-08-17 11:12:42
【问题描述】:
使用 Django-supervisor(https://github.com/rfk/django-supervisor),当我的 uwsgi upstart 脚本启动 Django 时,我试图找出一种方法让 python myproject/manage.py supervisor --daemonize 启动。
这是我的 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 行吗?或者最好的方法是什么?
【问题讨论】:
标签: python django upstart supervisord django-supervisor