YouChuKoffee/sh/supervisord_include/start.conf

45 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[program:rpc]
directory=/msgc/cmd/rpc
# 执行的命令
command=/msgc/cmd/rpc/msgcenter
#在 supervisord 启动的时候也自动启动
autorstart=false
#程序异常退出后自动重启
autorestart=true
#启动 5 秒后没有异常退出,就当作已经正常启动了
startsecs=5
#启动失败自动重试次数,默认是 3
startretries=3
#把 stderr 重定向到 stdout默认 false
redirect_stderr=false
#stdout 日志文件大小,默认 50MB
stdout_logfile_maxbytes = 20MB
#stdout 日志文件备份数
stdout_logfile_backups = 20
#stdout 日志文件需要注意当指定目录不存在时无法正常启动所以需要手动创建目录supervisord 会自动创建日志文件)
stdout_logfile=/var/log/supervisor_swoole_http_out.log
stderr_logfile=/var/log/supervisor_swoole_http_err.log
[program:api]
directory=/msgc/cmd/api
# 执行的命令
command=/msgc/cmd/api/msgcenter
#在 supervisord 启动的时候也自动启动
autorstart=false
#程序异常退出后自动重启
autorestart=true
#启动 5 秒后没有异常退出,就当作已经正常启动了
startsecs=5
#启动失败自动重试次数,默认是 3
startretries=3
#把 stderr 重定向到 stdout默认 false
redirect_stderr=false
#stdout 日志文件大小,默认 50MB
stdout_logfile_maxbytes = 20MB
#stdout 日志文件备份数
stdout_logfile_backups = 20
#stdout 日志文件需要注意当指定目录不存在时无法正常启动所以需要手动创建目录supervisord 会自动创建日志文件)
stdout_logfile=/var/log/supervisor_swoole_http_out.log
stderr_logfile=/var/log/supervisor_swoole_http_err.log