Skip to content

Instantly share code, notes, and snippets.

@kaidiren
Created March 9, 2019 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaidiren/5aabd649e5b1c9f899c0c7d022a5656b to your computer and use it in GitHub Desktop.
Save kaidiren/5aabd649e5b1c9f899c0c7d022a5656b to your computer and use it in GitHub Desktop.
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