[增添]于opcua_exporter增添了supervisor服务

This commit is contained in:
makotocc0107
2024-09-10 13:52:35 +08:00
committed by Coding
parent 68325bc759
commit c075ada573
4 changed files with 64 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
[supervisord]
nodaemon=true ; 让 supervisor 运行在前台,保持容器不退出
logfile=/var/log/supervisor/supervisord.log
pidfile=/var/run/supervisord.pid
[program:opcua_exporter]
command=/usr/local/bin/opcua_exporter /etc/opcua/opcua.yaml
autostart=true
autorestart=true
stderr_logfile=/var/log/opcua_exporter.err.log
stdout_logfile=/var/log/opcua_exporter.out.log
[program:confd]
command=/usr/local/bin/confd -config-file /etc/confd/confd.toml
autostart=true
autorestart=true
stderr_logfile=/var/log/confd.err.log
stdout_logfile=/var/log/confd.out.log