# debian or ubuntu
apt-get install supervisor
# CentOS7 or CentOS6
yum install supervisor
# Upgrade to newest version for CentOS6
pip install -U supervisor
===== Configuration =====
[program:PROGRAM_NAME]
command=python /path/to/run.py
autorestart=true
startretries=3
user=root
group=root
directory=/path/to/dir
stopasgroup=true
stdout_logfile=/path/to/logs/stdout.log
stderr_logfile=/path/to/logs/error.log