Once the installation is complete, we have to generate our configuration file.
We can now install supervisor by typing the command:Īfter installation, the supervisor daemon should be started, as the prebuilt packages come with an init script that will also ensure the Supervisor is restarted after a system reboot. Now, we install easy install with the command below followed by y when prompted to continue: Firstly, we need to update our local packages list by running the command: apt-get update Supervisor can be installed through two ways:īy downloading the Supervisor package and invoking the command: apt-get install supervisorīy using easy_install which is a feature of python setuptools.
To check what version of Python is installed on your system, type the command below: python -version Supervisor is known to work with Python 2.4 or later but will not work under any version of Python 3.
In this guide, we will install the latest version of supervisor, show how to spawn and manage programs through supervisorctl, and lastly configure a web interface to manage our programs. XML-RPC Interface: The same HTTP server which serves the web UI serves up an XML-RPC interface that can be used to interrogate and control supervisor and the programs it runs. Web Server: A (sparse) web user interface with functionality comparable to supervisorctl It provides a shell-like interface to the features provided by supervisord.
Supervisorctl: The command-line client piece of the supervisor is named supervisorctl. It is responsible for starting child programs at its own invocation, responding to commands from clients, restarting crashed or exited subprocesseses, logging its subprocess stdout and stderr output, and generating and handling “events” corresponding to points in subprocess lifetimes. Supervisord: This is the server piece of supervisor is named supervisord. Features of Supervisor includes simple, centralized, efficient, extensible, compatible and proven. It is used to control processes related to a project or a customer and is meant to start like any other program at boot time. Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.