apt-get install supervisor
[inet_http_server]
port=0.0.0.0:9001
username=admin
password=admin
[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