Supervisor is a client/server system that allows its users to monitor and control several processes on UNIX-like operating systems. 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. Features of Supervisor includes simple, centralized, efficient, extensible, compatible and proven.
The main components of the Supervisor are:
supervisord: This is the server piece of the supervisor is named supervisord. It is responsible for starting child programs at its invocation, responding to commands from clients, restarting crashed or exited subprocesses, logging its subprocess stdout and stderr output, and generating and handling “events” corresponding to points in subprocess lifetimes.
supervisorctl: The command-line client piece of the supervisor is named supervisorctl. It provides a shell-like interface to the features offered by supervisord.
In this guide, we will install the latest version of supervisor on CentOS 7
Deploying your cloud server
If you have not already registered with Cloudwafer, you should begin by getting signed up. Take a moment to create an account after which you can quickly deploy your cloud servers.
Updating System Packages
It is recommended that you update the system to the latest packages before beginning any significant installations. Issue the command below:
sudo yum update -y
Step 1: Install EPEL Repository
We are going to install the EPEL Repository as Supervisor is not available in the default CentOS 7 Repository. Issue the command below to install:
sudo yum install epel-release
Step 2: Update and Install Supervisor
After adding the EPEL Repository, we need to update our system packages before proceeding to install the Supervisor package using the command below :
sudo yum update sudo yum -y install supervisor
Then start and enable the supervisord daemon to start on boot using the commands below:
sudo systemctl start supervisord sudo systemctl enable supervisord
Issue the command below to check the status of the service with the command below:
sudo systemctl status supervisord