mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-02-22 21:52:53 +08:00
Postfix has an option to run in foreground. Use this feature to reduce the complexity of supervisord.conf.
35 lines
817 B
Text
35 lines
817 B
Text
[supervisord]
|
|
user = root
|
|
nodaemon = true
|
|
logfile = /dev/null
|
|
logfile_maxbytes= 0
|
|
|
|
[program:rsyslog]
|
|
command = rsyslogd -n
|
|
autostart = true
|
|
autorestart = true
|
|
startsecs = 2
|
|
stopwaitsecs = 2
|
|
stdout_logfile = /dev/stdout
|
|
stderr_logfile = /dev/stderr
|
|
stdout_logfile_maxbytes = 0
|
|
stderr_logfile_maxbytes = 0
|
|
|
|
[program:postfix]
|
|
command = /usr/sbin/postfix -c /etc/postfix start-fg
|
|
autostart = true
|
|
autorestart = false
|
|
directory = /etc/postfix
|
|
startsecs = 0
|
|
|
|
[program:opendkim]
|
|
command = /opendkim.sh
|
|
user = opendkim
|
|
autostart = true
|
|
autorestart = true
|
|
startsecs = 5
|
|
stopwaitsecs = 5
|
|
stdout_logfile = /dev/stdout
|
|
stderr_logfile = /dev/stderr
|
|
stdout_logfile_maxbytes = 0
|
|
stderr_logfile_maxbytes = 0
|