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( 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 are using the unix socket form of the RPC ( as opposed to http server ). This module will work with either, but really you're not getting much vs RPC::XML::Client for the http version; the http over Unix socket part is where this module comes in handy. See http://supervisord.org/api.html for the API docs.
Constructor, provided by Moo.
Access to the RPC::XML::Client object.
This module uses AUTOLOAD to proxy calls to send_rpc_request. See synopsis for examples.
optional - ex: /tmp/super.sock
optional - in supervisor format, ex: unix:///tmp.super.sock
One of the two is required.
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.