January 2019
Beginner to intermediate
776 pages
19h 58m
English
We need to create a configuration file for Supervisor. A sample configuration is given in this recipe. In this example, we define the Unix HTTP server socket and a few other parameters. Note the rpcinterface:supervisor section where rpcinterface_factory is defined to communicate with clients.
Using Supervisor, we configure a simple server program in the program: 17_2_multithreaded_multicall_xmlrpc_server.py section by specifying the command and some other parameters.
Listing 7.1a gives the code for a minimal Supervisor configuration, as shown:
[unix_http_server] file=/tmp/supervisor.sock ; (the path to the socket file) chmod=0700 ; socket file mode (default 0700) [supervisord] logfile=/tmp/supervisord.log loglevel=info pidfile=/tmp/supervisord.pid ...
Read now
Unlock full access