【问题标题】:Start Django-Supervisor From Upstart in Uwsgi script?在 Uwsgi 脚本中从 Upstart 启动 Django-Supervisor?
【发布时间】: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


    【解决方案1】:

    创建一个新的新贵工作并拥有它start on started uwsgistop on stopping uwsgi。从您的 django-supervisor 行中删除 --daemonize 选项并将其设置为您的 exec。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-26
      • 2012-09-18
      • 2014-02-18
      • 1970-01-01
      相关资源
      最近更新 更多