This commit is contained in:
22
supervisor/conf.d/supervisord.conf
Normal file
22
supervisor/conf.d/supervisord.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
[supervisord]
|
||||
# 设置是否在前台启动
|
||||
nodaemon=true
|
||||
# 关闭supervisor自身的日志
|
||||
logfile=/dev/null
|
||||
loglevel=error
|
||||
logfile_maxbytes=0
|
||||
|
||||
|
||||
# 定义被管理的进程
|
||||
[program:weather_report]
|
||||
command=/bin/bash /scripts/weather_report.sh
|
||||
stdout_logfile=/dev/stdout # 将标准输出重定向到容器标准输出
|
||||
stdout_logfile_maxbytes=0
|
||||
stdout_events_enabled=false
|
||||
|
||||
|
||||
[program:news_broadcast]
|
||||
command=/bin/bash /scripts/news_broadcast.sh
|
||||
stdout_logfile=/dev/stdout # 将标准输出重定向到容器标准输出
|
||||
stdout_logfile_maxbytes=0
|
||||
stdout_events_enabled=false
|
||||
Reference in New Issue
Block a user