Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
supervisor config example
[program:bilibili]
directory=/root/bilibili # 程序目录
command=/root/B/bili/bin/python3 -u run.py # 运行命令
stdout_logfile=/root/B/bili/bilibili-live-record-and-upload/run.log # 日志输出文件
redirect_stderr=true #重定向错误到标准输出
stopwaitsecs=600 #进程停止的等待时间
startretries=60 #重启尝试次数
autostart=true #是否自启动
autorestart=true #是否进程重启
stopasgroup=true #是否使用群组模式,包含有子进程的建议开启
killasgroup=true #是否使用群组模式,包含有子进程的建议开启
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.