- [x] 完成log模块镜像构建、本地端到端写日志——收集——查询流程; - [x] 完成bind模块构建; - [x] 内置域名IP自动更新脚本,使用 /private/argus/etc目录下文件进行同步,容器启动时自动写IP,定时任务刷新更新DNS服务器IP和DNS规则; Co-authored-by: root <root@curious.host.com> Reviewed-on: #8 Reviewed-by: sundapeng <sundp@mail.zgclab.edu.cn>
38 lines
880 B
Plaintext
38 lines
880 B
Plaintext
[unix_http_server]
|
|
file=/var/run/supervisor.sock
|
|
chmod=0700
|
|
|
|
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/var/log/supervisor/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
|
|
[rpcinterface:supervisor]
|
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
|
[supervisorctl]
|
|
serverurl=unix:///var/run/supervisor.sock
|
|
|
|
[program:bind9]
|
|
command=/usr/sbin/named -g -c /etc/bind/named.conf -u bind
|
|
user=bind
|
|
autostart=true
|
|
autorestart=true
|
|
stderr_logfile=/var/log/supervisor/bind9.err.log
|
|
stdout_logfile=/var/log/supervisor/bind9.out.log
|
|
priority=10
|
|
|
|
[program:argus-dns-sync]
|
|
command=/usr/local/bin/argus_dns_sync.sh
|
|
autostart=true
|
|
autorestart=true
|
|
startsecs=3
|
|
stopsignal=TERM
|
|
user=root
|
|
stdout_logfile=/var/log/argus_dns_sync.out.log
|
|
stderr_logfile=/var/log/argus_dns_sync.err.log
|
|
; 根据环境调整环境变量(可选)
|
|
; environment=RNDC_RELOAD="yes"
|
|
|