How it works...

This recipe relies on running the Supervisor daemon (configured with rpcinterface) in the background. Supervisor launches another XML-RPC server, as follows: 7_2_multithreaded_multicall_xmlrpc_server.py.

The client code has a query_supervisr() method, which takes an argument for the Supervisor socket. In this method, an instance of SupervisorTransport is created with the Unix socket path. Then, an XML-RPC server proxy is created by instantiating the ServerProxy() class of xmlrpclib by passing the server address and previously created transport.

The XML-RPC server proxy then calls the Supervisor's getAllProcessInfo() method, which prints the process information of the child process. This process includes pid, statename, description, and so on.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.109.8