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 8
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 dnf update -y
Step 1: Install EPEL Repository
We are first going to install the EPEL Repository as Supervisor by issuing the command below to install if it isn't already installed:
sudo dnf 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