Monitoring Processes with Supervisord

Wiki

Supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems.

Install via easy_install or pip on Debian, not recommended to use apt-get.

easy_install is the part of python-setuptools. First install python-setuptools

$ sudo apt-get install python-setuptools

Then we can use easy_install to install from pypi

You need to use sudo with easy_install.

$ sudo easy_install supervisor

Or there is another module python-pip which will also help in installing from pypi with command

$ sudo pip install supervisor

Generate config file

# echo_supervisord_conf > /etc/supervisord.conf

Common out [inet_http_server] section will enable web interface

[inet_http_server]
port = 127.0.0.1:9001
username = user
password = 123

Monitoring Processes with Supervisord

We can edit /etc/supervisord.conf to include our own config file like this

[include]
files=/etc/supervisor/conf.d/*.conf

Start Supervisord

$ sudo supervisord

Start Supervisorctl

$ sudo supervisorctl
0.00 avg. rating (0% score) - 0 votes