Use the Supervisor to manage processes

Supervisor is a very good process management tool developed in Python. It allows users to accurately monitor and control multiple sets of specified number of service processes on UNIX-like systems. When the monitored service process quits unexpectedly, it attempts to automatically restart these services to keep the service available.

There are many installation methods provided by Supervisor, which is installed by pip.

Install pip

$ yum install python-pip
$ pip install --upgrade pip
$ pip -V
pip 9.0.1 

Install Supervisor
Install Supervisor via pip:

$ pip install supervisor
Successfully installed supervisor-3.3.3

After installing Supervisor, there are two programs, supervisorctl and supervisord, where supervisorctl is the service monitoring terminal, and supervisord is the brain of all monitoring services. Check if supervisord is successfully installed:

File permission after copy a file from a account t...
How to handle duplicate data in MySQL


No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Sunday, 16 December 2018