Supervisord::Client - a perl client for Supervisord's XMLRPC.
my $client = Supervisord::Client->new( serverurl => "unix:///tmp/socky.sock" ); #or my $client = Supervisord::Client->new( serverurl => "http://foo.bar:25123" ); #or my $client = Supervisord::Client->new( path_to_supervisor_config => "/etc/supervisor/supervisor.conf" ); warn $_->{description} for(@{ $client->getAllProcessInfo }); #or warn $_->{description} for(@{ $client->send_rpc_request("supervisor.getAllProcessInfo") });
This module is for people who are using supervisord ( http://supervisord.org/ ) to manage their daemons, and ran into problems with the http over Unix socket part.
See http://supervisord.org/api.html for the API docs of what the supervisord XMLRPC supports.
Constructor, provided by Moo.
Access to the RPC::XML::Client object.
Access to the LWP::UserAgent object from the RPC::XML::Client
This module uses AUTOLOAD to proxy calls to send_rpc_request. See synopsis for examples.
path_to_supervisor_config or serverurl is required.
optional - ex: /tmp/super.sock
optional - in supervisor format, ex: unix:///tmp.super.sock | http://myserver.local:8080
This library is free software and may be distributed under the same terms as perl itself.
Samuel Kaufman skaufman@cpan.org
To install Supervisord::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Supervisord::Client
CPAN shell
perl -MCPAN -e shell install Supervisord::Client
For more information on module installation, please visit the detailed CPAN module installation guide.