安装
apt-get install supervisor


配置文件:/etc/supervisor/conf.d/http_server.conf
[inet_http_server]
port=0.0.0.0:9001
username=admin
password=admin


配置文件:/etc/supervisor/conf.d/openvpn.conf
[program:openvpn]
command=python3 app.py
directory=/root/openvpn
user=root
autorestart=true
redirect_stderr=true
stdout_logfile=/var/log/supervisor/openvpn.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=info


作者:Varden