V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Jul 25, 2017 · 2653 views
    This topic created in 3208 days ago, the information mentioned may be changed or developed.
    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 replies    2017-07-30 16:15:14 +08:00
    knightdf
        1
    knightdf  
       Jul 25, 2017
    看日志,
    supervisorctl
    fakepoet
        2
    fakepoet  
       Jul 30, 2017
    配置里加上 auto_restart=true
    fakepoet
        3
    fakepoet  
       Jul 30, 2017
    无视我吧,没好好审题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5944 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:33 · PVG 14:33 · LAX 23:33 · JFK 02:33
    ♥ Do have faith in what you're doing.