b4f159da86
[Postfix] Better logging while bootstrapping [Postfix] Stop container, when a service fails (easier to monitor)
25 lines
573 B
Plaintext
25 lines
573 B
Plaintext
[supervisord]
|
|
pidfile=/var/run/supervisord.pid
|
|
nodaemon=true
|
|
user=root
|
|
|
|
[program:syslog-ng]
|
|
command=/usr/sbin/syslog-ng --foreground --no-caps
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
autostart=true
|
|
|
|
[program:postfix]
|
|
command=/opt/postfix.sh
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
autorestart=true
|
|
|
|
[eventlistener:processes]
|
|
command=/usr/local/sbin/stop-supervisor.sh
|
|
events=PROCESS_STATE_STOPPED, PROCESS_STATE_EXITED, PROCESS_STATE_FATAL
|