supervisord

Process manager tool for configuring background services/resident processes

Install

# Install supervisord
apt-get install supervisor

Example

Generate configuration file /etc/supervisord.conf

[program:app]
command=/usr/bin/gunicorn -w 1 wsgiapp:application
directory=/srv/www
user=www-data

supervisord: start supervisor service

supervisorctl start app
supervisorctl stop app
supervisorctl reload # Modify/add configuration files need to execute this

download link

https://pypi.python.org/pypi/meld3 https://pypi.python.org/pypi/supervisor