Hi,

I'm using supervisor 3.0a8 and having problems with non-homogenous
groups. My configuration has three programs configured to a single
group

[program:appcontainer1]
directory=/opt/appcontainer/
command=/opt/appcontainer/appcontainer.sh -c 1
startsecs=3
user=ubuntu
redirect_stderr=true
stdout_logfile=/opt/appcontainer/logs/appcontainer1.log

[program:appcontainer2]
directory=/opt/appcontainer/
command=/opt/appcontainer/appcontainer.sh -c 2
startsecs=3
user=ubuntu
redirect_stderr=true
stdout_logfile=/opt/appcontainer/logs/appcontainer2.log


[program:appcontainer3]
directory=/opt/appcontainer/
command=/opt/appcontainer/appcontainer.sh -c 3
startsecs=3
user=ubuntu
redirect_stderr=true
stdout_logfile=/opt/appcontainer/logs/appcontainer3.log


[group:appcontainer]
programs=appcontainer1, appcontainer2, appcontainer3
priority=999

Now it seems that I can not query the group status, only individual
process status.. all other attempts throw ProtocolError or can not
find the process.

$ supervisorctl status appcontainer:appcontainer1
appcontainer:appcontainer1       RUNNING    pid 24737, uptime 0:03:43

$ supervisorctl status "appcontainer:*"
error: <class 'xmlrpclib.ProtocolError'>, <ProtocolError for
127.0.0.1/RPC2: 500 Internal Server Error>: file:
/usr/lib/pymodules/python2.6/supervisor/xmlrpc.py line: 474

$ supervisorctl status "appcontainer:"
error: <class 'xmlrpclib.ProtocolError'>, <ProtocolError for
127.0.0.1/RPC2: 500 Internal Server Error>: file:
/usr/lib/pymodules/python2.6/supervisor/xmlrpc.py line: 474

$ supervisorctl status "appcontainer"
No such process appcontainer

However, just plain status works but it dumps all processes

$ supervisorctl status
appcontainer:appcontainer1       RUNNING    pid 24911, uptime 0:00:47
appcontainer:appcontainer2       RUNNING    pid 24904, uptime 0:00:47
appcontainer:appcontainer3       RUNNING    pid 24903, uptime 0:00:47

Is it possible to get status for a group?

Regards, Teemu
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to