Supervisor is a client/server system that allows its users to monitor and control a number of 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 supervisor is named supervisord. It is responsible for starting child programs at its own 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 provided by supervisord.
In this guide, we will install the latest version of supervisor on Debian 9.
Step 1: Install Supervisor from APT Repository
Issue the commands below to install the Redis package using the command below :
sudo apt install supervisor -y
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