本文不陈述配置文件中的参数,而是关于配置文件的使用,强调2点
1. 对于supervisor 而言,配置文件在不手动指定的情况下 -c 参数
$CWD/supervisord.conf$CWD/etc/supervisord.conf/etc/supervisord.conf
所以要小心配置文件被错误使用
2. supervisorctl 与supervisord 进程进...
分类:
其他好文 时间:
2014-11-26 07:59:05
阅读次数:
190
supervisord
是client/server 系统把不是守护进程的进程变成守护进程监控它自己启动的进程,类似于看门狗可以作为开机启动的一种封装可以精确控制进程的状态,而不是pidfile那么不准确
安装
说白了就是个python包,官方文档,我这里系统是centos6.5 root用户
#系统换进centos5.1pip install supervisor
一般安装...
分类:
其他好文 时间:
2014-11-20 20:26:28
阅读次数:
216
安装yum install -y python-setuptoolseasy_install supervisorecho_supervisord_conf > /etc/supervisord.conf将默认配置保存在/etc/supervisord.conf中配置supervisord连接方式使...
分类:
系统相关 时间:
2014-11-19 17:56:48
阅读次数:
444
1.安装supervisord #yum install python-setuptools #easy_install supervisor或#pip? install supervisor #echo_supervisord_conf > /etc/supervisord.conf 2.supervisord配置文件 在supervisord.conf最后增加:...
分类:
其他好文 时间:
2014-11-19 12:44:02
阅读次数:
271
failed: [localhost] => {"changed": true, "cmd": "/edx/app/supervisor/venvs/supervisor/bin/supervisorctl -c /edx/app/supervisor/supervisord.conf update ", "delta": "0:00:00.087891", "end": "2014-10-...
分类:
移动开发 时间:
2014-10-31 00:00:28
阅读次数:
592
1. 生成配置文件$ echo_supervisord_conf > /etc/supervisord.conf2.修改配置文件vi /etc/supervisord.conf找到[include]files = /etc/supervisor/conf.d/*.conf然后再/etc/superv...
分类:
其他好文 时间:
2014-10-28 15:19:03
阅读次数:
113
使用 supervisord 监控管理的进程必须以 nodaemon 启动,而 tomcat 的 startup.sh 脚本是daemon方式的,如果不做修改的话,supervisord 会一直报错,那就没法玩了。办法是:在 startup.sh 的最后的exec "$PRGDIR"/"$EXECUTABLE" start "$@" 改为exec "$PRGDIR"/"$EXECUTABLE" ...
分类:
其他好文 时间:
2014-10-25 09:17:45
阅读次数:
178
使用 supervisord 监控管理的进程必须以 nodaemon 启动,而 tomcat 的 startup.sh 脚本是daemon方式的,如果不做修改的话,supervisord 会一直报错,那就没法玩了。办法是:在 startup.sh 的最后的exec "$PRGDIR"/"$EXECUTABLE" start "$@" 改为exec "$PRGDIR"/"$EXECUTABLE" ...
分类:
其他好文 时间:
2014-10-23 17:45:57
阅读次数:
173
转的一篇文章,原文,http://type.so/linux/supervisor-install-and-configure.html Supervisor安装 # 安装 easy_install supervisor # 生成默认配置文件 echo_supervisord_conf > /etc/supervisord.conf mkdir ...
分类:
其他好文 时间:
2014-10-22 13:01:53
阅读次数:
154
安装supervisor方法,可以直接用 yum install supervisord ,但是版本可能会旧一点,可以参考官方的方法:easy_install supervisorhttp://supervisord.org/installing.html#installing-to-a-syste...
分类:
其他好文 时间:
2014-10-20 19:20:40
阅读次数:
198