V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
mmnnyycc
V2EX  ›  Python

supervisor 守护的一个进程 kill 掉之后怎么重新起来?

  •  
  •   mmnnyycc · 2017-07-25 16:41:26 +08:00 · 2243 次点击
    这是一个创建于 2471 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1.supervisord -c /usr/local/etc/supervisord.conf
    [program:hello]
    command=php /home/test.php
    autostart=true
    autorestart=true
    2.ps -ef|grep php 是可以看到已经在执行了
    3.kill -9 将 php /home/test.php 这个进程杀掉后,就必须我手动重启 supervisord 了
    

    我的疑问:我记得以前可以直接 kill 掉之后,马上就会被 supervisor 重新拉起来,我这个怎么不能自己起来呢?

    3 条回复    2017-07-30 16:15:14 +08:00
    knightdf
        1
    knightdf  
       2017-07-25 16:55:51 +08:00
    看日志,
    supervisorctl
    fakepoet
        2
    fakepoet  
       2017-07-30 16:14:19 +08:00
    配置里加上 auto_restart=true
    fakepoet
        3
    fakepoet  
       2017-07-30 16:15:14 +08:00
    无视我吧,没好好审题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   832 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:52 · PVG 04:52 · LAX 13:52 · JFK 16:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.