1
bitwing Oct 28, 2014
supervisor 有这种功能的吧
|
2
julyclyde Oct 28, 2014
init-daemontools
用SIGCHLD串一串 |
3
frankzeng Oct 28, 2014
这种对于做运维的太简单了,可以先检测,发现不正常kill掉,然后重启,把这功能做成脚本放到crontab里,5分钟运行一次。
|
4
cevincheung OP |
5
eriale Oct 28, 2014
supervisor可以自动重启挂掉的应用。
|
6
wuxqing Oct 28, 2014
可以试试monit
|
7
frankzeng Oct 28, 2014
你要是会用shell,这比工具简单多了。
|
10
cevincheung OP @frankzeng 这个我同意,这是能最大化节省运维时间和成本的方法,与其消耗100分钟的时间去查原因,还不如直接花1秒时间重启服务来得快。
|
11
Jaylee Oct 28, 2014
supervisor
|
12
binux Oct 28, 2014 |
13
sarices Oct 28, 2014
supervisor +1
|
16
bearice Oct 28, 2014
daemontools拯救世界(不是那个虚拟光驱)
|
17
ryd994 Oct 29, 2014 via Android
骚年学学systemd吧
|
18
maemual Oct 29, 2014
居然还有这么多人不知道supervisor
|
19
ericls Oct 29, 2014 via Android
pip install supervisor
|
21
laputaprince Oct 29, 2014
就我一个人用 upstart 么。。
|
22
msg7086 Oct 29, 2014 via iPhone
就我一个人用 god 么。。
|
23
mulog Oct 29, 2014
@laputaprince
you are not alone :P |
24
clino Oct 29, 2014
supervisor +1
|
25
hzqim Oct 29, 2014 via Android
|
26
codeninja Oct 29, 2014 via Android
monit
|
27
hq Oct 29, 2014
用supervisord也要注意server重启后supervisor自己会自动运行,不然负责监控的死了
http://supervisord.org/running.html#running-supervisord-automatically-on-startup |
29
jpuyy Oct 30, 2014 via iPhone
直接用forever,还可以根据不同的日志输出到不同文件里方便排查问题
|