Created
March 9, 2019 14:07
-
-
Save kaidiren/5aabd649e5b1c9f899c0c7d022a5656b to your computer and use it in GitHub Desktop.
supervisor config example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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