Supervisord:重新启动组会导致 BAD_NAME

标签 supervisord

我正在运行supervisord 3.0。我的supervisord.conf文件看起来像这样:

[unix_http_server]
file=/var/run/supervisor/supervisor.sock

[supervisord]
logfile=/var/log/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=info
pidfile=/var/run/supervisor/supervisord.pid
minfds=1024
minprocs=200

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor/supervisor.sock

[program:p2]
command=...

[program:p1]
command=...

[group:myprograms]
programs=p1,p2

使用supervisordctl我可以单独重新启动这两个程序。

$ supervisorctl restart p1
$ supervisorctl restart p2

但是,尝试重新启动组会导致错误。

$ supervisorctl restart myprograms:
error: <class 'xmlrpclib.Fault'>, <Fault 10: 'BAD_NAME: myprograms'>: file: /usr/local/lib/python2.7/xmlrpclib.py line: 799

如何重新启动群组?

最佳答案

事实证明这是由我的配置文件中的拼写错误引起的。

关于Supervisord:重新启动组会导致 BAD_NAME,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32082564/

相关文章:

apache-zookeeper - 使用 Supervisord 监督 ZooKeeper

uwsgi - 主管重启导致僵尸uwsgi进程

go - 增加进程的打开文件限制

docker - 启用 WARN 日志级别时,主管不会从应用程序收集日志

python - django 在生产环境中与主管一起启动 celery 守护进程

mysql - 同时处理数百个 RDS mysql 数据库

Django Supervisord fastcgi 配置(supervisord.conf)——立即退出

python - supervisord 环境变量设置应用程序

python - Django + Celery + Supervisord + Redis 设置时报错

php - 为什么 Laravel 或 Beanstalkd 会跳槽?