Files
mbs-infra/mbs/etc/supervisord.d/fedmsg-relay.ini
2024-11-21 14:58:23 +08:00

37 lines
1.0 KiB
INI
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:fedmsg-relay]
# 执行项目之前,需要切换到哪个用户
user=fedmsg
# 执行项目前需要cd到哪个目录下
# directory=/opt/bin
# 命令中可能需要的环境变量信息
#environment=PYTHON_HOME="/root/anaconda/bin/"
# 如果命令本身是多进程那么需要设置stopasgroup否则只会杀死命令的主进程
stopasgroup=true
# 执行命令,以后台形式
command=/usr/bin/fedmsg-relay-3
# 开启supervisor就启动
autostart=true
# 发现关闭了就重启
autorestart=true
# 观察时间如果观察时间内该项目的pid消失了就说明失败了
startsecs=10
# 重启次数
startetries=3
# 错误信息和正常信息分开存储
redirect_stderr=true
# 错误信息保存路径
stderr_logfile=/app/log/fedmsg/fedmsg-relay_stderr.log
# 正常信息保存路径
stdout_logfile=/app/log/fedmsg/fedmsg-relay_stdout.log
# 单个正常信息日志文件大小
stdout_logfile_maxbytes=20MB
# stdout日志文件备份数量
stdout_logfile_backups=20
priority=62